I'm trying to get the description of a table in oracle because I need to know what foreign keys does it have and which tables they refer to.
I'm using desc
but all I get is "ORA-00900: invalid SQL statement"
Any idea why?
Thanks.
Unable to describe table in oracle
oracle
Related Question
- Restrict executeQuery in Java from data manipulation in an Oracle database
- Oracle – Unable to Change to Noarchivelog
- Foreign Key problem, ORA-00907: missing right parenthesis on creating table & ORA-01735: invalid ALTER TABLE option
- Does Oracle support the VALUES expression construct
- Oracle – Create Key-Preserved View with Descending Indexes
- Oracle – How to Use GROUP BY on a CLOB Column
Best Answer
I suspect that you did not execute this command with sqlplus. Not every sql program can handle the
desc
command.You can either use sqlplus or get the table definition with the following SQL command:
This will give you the complete table definition with all column definitions.