cancel
Showing results for 
Search instead for 
Did you mean: 

Describe table_name is not working in oracle execute snap

ppankaj88
New Contributor II

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

1 REPLY 1

skatpally
Former Employee

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’