Received this question today: I don’t have a problem to select from collection when collection is based on objects with columns/attributes. What about a collection defined as: TYPE list_of_numbers_t IS TABLE OF NUMBER; What would be the column name when you select from the collection? Short answer: COLUMN_VALUE Longer answer: here's a script I used to demonstrate several different features of nested tables. See query at bottom. CREATE OR REPLACE TYPE list_of_names_t IS TABLE OF VARCHAR2 (100); / GRANT EXECUTE ON list_of_names_t TO PUBLIC / DECLARE happyfamily list_of_names_t := list_of_names_t (); children list_of_names_t := list_of_names_t (); grandchildren list_of_names_t := list_of_names_t (); parents list_of_names_t := list_of_names_t (); BEGIN /* Can extend in "bulk" - 6 at once here */ hap...
For the last twenty years, I have managed to transform an obsession with PL/SQL into a paying job. How cool is that?