10-07-2020 09:23 AM
Hi,
I am trying to execute the sql query “describe table_name” but it is not working in oracle execute snap.
Getting an error like " Filed to execute query. Reason: ORA-00900: invalid SQL statement , Resolution: Please check sql query"
Any suggestion…?
Regards,
Pankaj
10-07-2020 10:17 AM
describe
is a SQL*Plus
command not a valid SQL command
Try below
select owner, table_name, column_name, data_type, data_length, data_precision
from all_tab_columns
where table_name = ‘XXX’