DESC
is a SQLPlus
command, not an Oracle command. Try this query instead:
SELECT
Column_Name,
Data_Type,
Data_Length,
Data_Precision,
Nullable
FROM All_Tab_Columns
WHERE Owner = '<schema>' AND Table_Name = '<table>'
ORDER BY Column_ID
Make sure that <schema>
and <table>
are in uppercase.