How do you declare a PL/SQL table? Explain it with an example.
What will be an ideal response?
A PL/SQL TABLE declaration is done in two steps, like a record declaration:
? Declare a PL/SQL Table type with a TYPE statement. The structure could use
any of the scalar data types.
? Declare an actual table based on the type declared in the previous step.
For example, TYPE position_name_table_type IS TABLE OF position.PosDesc%TYPE INDEX BY BINARY_INTEGER; Position_table position_name_table_type;
Computer Science & Information Technology
You might also like to view...
Line weight is the thickness of a line as measured in ________
A) points B) millimeters C) pixels D) centimeters
Computer Science & Information Technology
Which of these is not a type of server
A. file server B. print server C. mail server D. disk server E. RAM sever
Computer Science & Information Technology