Last active
December 19, 2015 09:09
-
-
Save zirosas/5930788 to your computer and use it in GitHub Desktop.
Postgresql command
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
\c db_name : to connect to a certain database | |
\l : lists all databases | |
\dt : lists all tables in the current database | |
\d+ tablename : display table schema | |
heroku pg:psql : connect to Heroku psql | |
psql -h localhost : to connect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment