PL SQL
PL SQL
PL/SQL tables are PL/SQL’s way of providing arrays. Arrays are like tem-porary
for you to realize that they are not database tables, and DML
number) whose value can be referenced using the number of the index.
Remember that PL/SQL tables exist in memory only, and therefore don’t
There are two steps in the declaration of a PL/SQL table. First, you must
define the table structure using the TYPE statement. Second, once a table
FOR EXAMPLE
DECLARE
Customer.name_name%TYPE
INDEX BY BINARY_INTEGER;
CnameTab NameType;
KnameTab NameType;
BEGIN
NULL; -- ...
END;
REFERENCING AND MODIFYING PL/SQL
TABLE ROWS
In order to specify a particular row in a PL/SQL table, you must name the
table and the index.
PL/SQL TABLE ATTRIBUTES
Here are seven PL/SQL table attributes you can use to gain information
• NEXT—Returns the index of the next row in the table after the
specified row.
If you declare a PL/SQL table named t_customer then you get a rowcount
v_count := t_customer.count;
The DELETE and EXISTS attributes function differently than the other attributes.
.([,])