Last active
February 6, 2016 05:15
-
-
Save gigenthomas/f8c89be276768b0acc6e to your computer and use it in GitHub Desktop.
PostGres Commands
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
1. Connect to Database | |
psql -U username database | |
Unix account login using local authentication | |
psql database | |
2. List Database | |
\l | |
3. List Tables | |
\d | |
4. List schemas | |
\dn | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment