Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Describe table SQL Oracle [closed]

Tags:

sql

oracle

How to describe table in SQL Oracle, I tried desc and describe, but it says desc not supported. I also tried mysql syntax show columns from table, but show is also unsupported?

like image 880
BlaugranaGent Avatar asked Jun 08 '14 13:06

BlaugranaGent


1 Answers

You don't say what UI you are using, but DESC works in all of them that I know of. If it doesn't

SELECT * FROM ALL_TAB_COLUMNS
WHERE TABLE_NAME = 'MY_TABLE'
AND OWNER = 'MY_SCHEMA';

is an alternative for getting the same information.

like image 183
James King Avatar answered Sep 18 '22 02:09

James King