What are Nested Tables? How will u delete 5 rows from Nested
Tables
Answer Posted / subrat ray
Nested tables hold an arbitrary number of elements. They use sequential numbers as subscripts.
You can define equivalent SQL types,allowing nested tables to be stored in database tables and manipulated through SQL.
->it does not have fixed upper bound.
->the data storage is out of line.
DECLARE
TYPE COURSELIST IS TABLE OF VARCHAR2(10);
COURSES COURSELIST;
BEGIN
COURSES:=COURSELIST('A','B','C','D','E','F','G','H','I');
DBMS_OUTPUT.PUT_LINE('THE TOTAL NO OF ELEMENTS ARE:'||COURSES.COUNT);
COURSES.DELETE(1,5);
DBMS_OUTPUT.PUT_LINE('THE NO OF ELEMENTS ARE PRESENT IS:'||COURSES.COUNT);
END;
SQL> /
THE TOTAL NO OF ELEMENTS ARE:9
THE NO OF ELEMENTS ARE PRESENT IS:4
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Is pl sql still used?
How many indexes can be created on a table in sql?
what are the join types in tsql? : Transact sql
What is the difference between having clause and where clause?
Is sql a microsoft product?
What problem one might face while writing log information to a data-base table in pl/sql?
Does oracle use sql?
Why join is faster than subquery?
Why do you partition data?
How many types of normalization are there?
What is execute immediate?
Why is sql*loader direct path so fast?
Can a trigger call a stored procedure?
What are different clauses used in sql?
What do you understand by pl/sql records?