mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-17 09:25:32 +00:00
14 lines
267 B
Plaintext
14 lines
267 B
Plaintext
--List all tables
|
|
LIST TABLES
|
|
LIST TABLES FOR SCHEMA myuser
|
|
LIST TABLES FOR ALL
|
|
|
|
--List all tablespaces with their status
|
|
LIST TABLESPACES
|
|
|
|
--Describe the estructure of the table
|
|
DESCRIBE TABLE mytable
|
|
|
|
--Describe the result of a query
|
|
DESCRIBE SELECT * FROM mytable
|