2
0
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:
Andres Gomez Casanova 2019-01-07 11:55:03 -05:00 committed by GitHub
parent 94231322c0
commit 7d87e4c454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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