mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-01 21:40:24 +00:00
Create listing-and-describing
This commit is contained in:
parent
94231322c0
commit
7d87e4c454
13
sheets/_db2/listing-and-describing
Normal file
13
sheets/_db2/listing-and-describing
Normal file
@ -0,0 +1,13 @@
|
||||
--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
|
Loading…
Reference in New Issue
Block a user