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
Write the command to remove all players named sachin from the players table.
What are the advantages of indexing?
how to calculate expressions with sql statements? : Sql dba
What is rownum?
Can we create table inside stored procedure?
What is the use of procedures?
What is a file delimiter?
How can you get sql*loader to commit only at the end of the load file? : aql loader
What is the use of function "module procedure" in pl/sql?
Which sorts rows in sql?
what is sub-query? : Transact sql
What is dbo in sql?
What are literals in sql server?
What are the types of keys?
What is the difference between partition and index?