Last active
February 3, 2018 13:47
-
-
Save rubyandcoffee/e8ae23f3c9b7e38b091ba8748ff88bbe to your computer and use it in GitHub Desktop.
Postgres Commands
This file contains hidden or 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
# connect to postgres | |
psql postgres | |
# list databases | |
\list | |
# connect to database | |
\connect database_name | |
# show tables | |
\dt; | |
# show columns | |
\d column_name | |
# quit postgres | |
\q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment