Skip to content

Instantly share code, notes, and snippets.

@gigenthomas
Last active February 6, 2016 05:15
Show Gist options
  • Save gigenthomas/f8c89be276768b0acc6e to your computer and use it in GitHub Desktop.
Save gigenthomas/f8c89be276768b0acc6e to your computer and use it in GitHub Desktop.
PostGres Commands
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