I am trying to figure out why I am getting this error message. I have tried revising the code in various ways and still getting an error message. Error message is listed below.
ORA-00923: FROM keyword not found where expected
SELECT 'DATABASE' as DATABASE,
OWNER AS SCHEMA,
TABLE_NAME AS TABLE,
COLUMN_NAME AS COLUMN
FROM ALL_TAB_COLUMNS
WHERE OWNER = 'ALSCMGR'
AND TABLE_NAME IN ('ALSC_TRANS_NONMONETARY')
AND UPPER(COLUMN_NAME)
You can't use
TABLEnorCOLUMNas column aliases; rename them to something else, e.g.Alternatively, enclose aliases into double quotes:
I've removed the last "condition" (which is invalid anyway, but didn't cause that problem).