I have a simple array type definition like this
CREATE OR REPLACE TYPE "LIST_OF_NAMES_T" IS VARRAY(10) OF VARCHAR2 (100);
Now I have a column items of type LIST_OF_NAMES_T in my table TABLE1
Why am I getting an error when selecting the count of the array in a select statement like this:
SELECT items.COUNT FROM TABLE1;
Oracle tells me
ORA-00904: "items"."COUNT ": invalid identifier
Best Answer
10.2 documentation: Using Collection Methods
11.2 documentation: Collection Methods
Versions before 12c:
In 12c and later, you can define functions on the fly, so this also works: