Last active
March 2, 2017 14:46
-
-
Save BumbuKhan/4690661b45abc581e11c1bb0090cfc75 to your computer and use it in GitHub Desktop.
Work with tables in PostgreSQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List of available databases: \l | |
List of available tables: \dt | |
Choose table: \c <table_name> | |
Quit session: \q |
Read about schemas: http://postgresql.ru.net/manual/ddl-schemas.html
How to dump only schema (without data) http://serverfault.com/questions/60658/how-can-i-do-a-dump-of-only-the-table-structure-in-postgresql - "pg_dump --schema-only"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Read more: https://postgrespro.ru/media/2017/02/20/introbook_v3b1.pdf#viewer.action=download
List of commands on page 48