what are pl/sql collections?
Answers were Sorted based on User's Feedback
Answer / pradeep
A collection is an ordered group of elements, all of the
same type. It is a general concept that encompasses lists,
arrays, and other familiar datatypes. Each element has a
unique subscript that determines its position in the collection.
PL/SQL offers these collection types:
* Index-by tables,
* Nested tables
* Varrays
Is This Answer Correct ? | 50 Yes | 2 No |
Answer / hannan oca
collection of similar datatypes or group of same datatypes
are called collections.Basically they are 3 types
1.Index-by tables,
2.Nested tables
3.Varrays
collection of different datatypes are known as Records.
Is This Answer Correct ? | 15 Yes | 1 No |
Answer / praveenkumar
collection is set of ordered group of elements, all of the
same type.
Is This Answer Correct ? | 15 Yes | 2 No |
Answer / debanjan rudra
pl/sql collections are temporary table types which helps
the programmer to "temporary" manipulate data comprising
more than 1 row (i.e. not scalar).
Eg. CREATE OR REPLACE TAB AS TABLE OF VARCHAR2(100) INDEX
BY PLS_INTEGER;
In the above example "TAB" is a collection which shall be
used to temporarily store more than 1 varchar2 records.
Is This Answer Correct ? | 8 Yes | 3 No |
i have a table like this. i want to output like this c1 c2 c1 c2 1 10 1 10 2 20 2 30 3 30 3 60 4 40 4 100 5 5 5 105 c1 and c2 are columns in a table .i want output like this c2 values are 10,10+20,10+20+30,10+20+30+40.10+20+30+40+5. write a sql query.pls help this i want urgent.
2 Answers IBM, Loginworks, OFSS,
what is the different between unique+not null & primary key,
how to calcuate the second highest salary of he employee
What is the left table in sql?
Which join is default?
What is union, minus and interact commands?
<<labele>> declare a=10 b=20, begin some statements declare a=30 c=40 end; what is the A value in nested block?
while loading data into database how can u skip header and footer records in sql*loader
how to create a test table in your mysql server? : Sql dba
How can you load multi line records? : aql loader
what is the use of double ampersand (&&) in sql queries?
Is sql a dbms?