I am trying to select a table in Oracle redacting one column. This is the query that I tried, but Oracle does not like it.
SELECT (
SELECT COLUMN_NAME
FROM USER_TAB_COLS
WHERE TABLE_NAME = 'LMNOP_USERS'
AND COLUMN_NAME != 'USER_SECRET' )
FROM LMNOP_USERS;
FYI, the subquery does return the list of column names. Is there a way to write this query other than listing out all the columns?