What is a table of records?
What will be an ideal response?
The PL/SQL table type is declared with a data type. You may use a record type as a
table’s data type. The %ROWTYPE declaration attribute can be used to define the record
type. When a table is based on a record, the record must consist of fields with scalar data
types. The record must not have a nested record in it. The following examples show
different ways to declare table types based on records:
A PL/SQL table type based on a programmer-defined record:
TYPE student_record_type IS
RECORD (stu_id NUMBER (3), stu_name VARCHAR2 (30));
TYPE student_table_type IS TABLE OF student_record_type
INDEX BY BINARY_INTEGER;
Student_table student_table_type;
A PL/SQL table type based on a database table:
TYPE employee_table_type IS TABLE OF employee%ROWTYPE
INDEX BY BINARY_INTEGER;
Employee_table employee_table_type;
A PL/SQL table type based on a row returned by a cursor:
CURSOR employee_cur IS SELECT * FROM employee;
TYPE employee_cur_table_type IS employee_cur%ROWTYPE
INDEX BY BINARY_INTEGER;
Employee_cur_table employee_cur_table_type;
You might also like to view...
A ____ provides access to commands that control the application.
A. title bar B. scroll bar C. menu bar D. taskbar
An Opacity setting of ____ means that a layer is completely transparent.
a. 100% b. 50% c. 25% d. 0%
When you add a new field to a form, two controls are usually created: a(n) caption and a text box. _________________________
Answer the following statement true (T) or false (F)
Wireless ___________ is a security issue in network design.
Fill in the blank(s) with the appropriate word(s).