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
Where is pl sql used?
what is the difference between a having clause and a where clause? : Sql dba
How do you update f as m and m as f from the below table testtable?
How to install oracle sql developer?
Can you have more than one key in a database?
which tcp/ip port does sql server run on? : Sql dba
What is trigger types of trigger?
Write a unique difference between a function and a stored procedure.
How to assign sql query results to pl sql variables?
What does varchar include?
What is sql basics?
How to fix oracle error ora-00942: table or view does not exist
What is pl/sql table? Why it is used?
Is pl sql different from sql?
what is sql server agent? : Sql dba