CREATE OR REPLACE TYPE MISSING_KEYS AS TABLE OF VARCHAR2(256);
SELECT [¿what goes here?] as missing_key
FROM TABLE (MISSING_KEYS('A','B','C','D'))
1 Answer
column_value Pseudocolumn
When you refer to an
XMLTable
construct without theCOLUMNS
clause, or when you use theTABLE
function to refer to a scalar nested table type, the database returns a virtual table with a single column. This name of this pseudocolumn isCOLUMN_VALUE
.
Example:
CREATE OR REPLACE TYPE MISSING_KEYS AS TABLE OF VARCHAR2(256);
SELECT column_value AS missing_key
FROM TABLE (MISSING_KEYS('A','B','C','D'))