xv
Literals............................................................................................................................................. 13-107
LOCK TABLE Statement............................................................................................................. 13-110
LOOP Statements.......................................................................................................................... 13-112
MERGE Statement........................................................................................................................ 13-119
NULL Statement............................................................................................................................ 13-121
Object Types .................................................................................................................................. 13-122
OPEN Statement ........................................................................................................................... 13-131
OPEN-FOR Statement.................................................................................................................. 13-133
OPEN-FOR-USING Statement .................................................................................................. 13-136
Packages.......................................................................................................................................... 13-139
Procedures...................................................................................................................................... 13-145
RAISE Statement .......................................................................................................................... 13-150
Records............................................................................................................................................ 13-152
RESTRICT_REFERENCES Pragma........................................................................................... 13-156
RETURN Statement...................................................................................................................... 13-159
ROLLBACK Statement................................................................................................................ 13-161
%ROWTYPE Attribute ................................................................................................................ 13-163
SAVEPOINT Statement............................................................................................................... 13-165
SELECT INTO Statement............................................................................................................ 13-166
SERIALLY_REUSABLE Pragma ................................................................................................ 13-171
SET TRANSACTION Statement............................................................................................... 13-173
SQL Cursor..................................................................................................................................... 13-175
SQLCODE Function..................................................................................................................... 13-178
SQLERRM Function..................................................................................................................... 13-180
%TYPE Attribute........................................................................................................................... 13-182
UPDATE Statement...................................................................................................................... 13-184
A Sample PL/SQL Programs
Running the Programs....................................................................................................................... A-2
Sample 1. FOR Loop........................................................................................................................... A-3
Input Table..................................................................................................................................... A-3
PL/SQL Block ............................................................................................................................... A-3
Output Table ................................................................................................................................. A-4
Sample 2. Cursors ............................................................................................................................... A-4
Input Table..................................................................................................................................... A-4