2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-17 09:25:32 +00:00
cheat.sheets/sheets/_db2/listing-and-describing
2019-01-07 11:55:03 -05:00

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