I tried using Oracle's DESCRIBE TABLE...
statement in CockroachDB and got a syntax error. What’s the equivalent command?
Asked
Active
Viewed 2,871 times
7

Alex Robinson
- 12,633
- 2
- 38
- 55
1 Answers
9
In CockroachDB, the SHOW COLUMNS
statement returns information about the columns in a table, similar to the DESCRIBE
statement in MySQL and the \d
command in PostgreSQL:
SHOW COLUMNS FROM tablename;
You can also get some information by running SHOW INDEX
or SHOW CREATE TABLE
or by querying the information_schema
database.

Emerson Oliveira
- 616
- 1
- 5
- 15

Alex Robinson
- 12,633
- 2
- 38
- 55