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'))
What is the default column name that should be in [¿what goes here?]
in the above example?
user68575
user68575
asked Sep 19, 2019 at 16:35
user68575user68575
1 Answer 1
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'))
answered Sep 19, 2019 at 16:37
user68575user68575
lang-sql