home *** CD-ROM | disk | FTP | other *** search
- rem
- rem $Header: demo1.sql,v 6.1 90/02/16 18:39:56 nsalah Exp $ demo1.sql Copyr (c) 1989 Oracle
- rem
- rem V6PLS10030,DISK$DEV2:[PLS1FREEZE.DEMO.10030]
- /* SCRIPT: DEMO1 */
- /* Shows use of variables, constants, and conditional control within */
- /* a PL/SQL procedure. */
-
- set termout off
- START load_inv
- delete from purchase_record;
- commit;
- set termout on
-
- prompt >>>>> Here's our inventory table:
- prompt >>>>> (Note: there are 3 tennis racquets in stock)
- select * from inventory_table;
-
- prompt >>>>> Here's our purchase record, which is currently empty:
- select * from purchase_record;
-
- prompt
- prompt >>>>> Hit return to load our PL/SQL procedure that purchases
- prompt >>>>> tennis racquets (part number 1234)...
- pause
-
- GET demo1_pls
- .
-
- prompt
- prompt >>>>> Hit return to run this procedure 3 times...
- pause
-
- START demo1_pls
- /
- START demo1_pls
- /
- START demo1_pls
- /
-
- prompt >>>>> Hit return to look again at our inventory table
- prompt >>>>> and our purchase record...
- pause
-
- select * from inventory_table;
- select * from purchase_record;
-
- prompt >>>>> Hit return to run our PL/SQL procedure one more time
- prompt >>>>> and then take another look at our tables...
- pause
-
- START demo1_pls
- /
-
- select * from inventory_table;
- select * from purchase_record;
-