Skip to content

Instantly share code, notes, and snippets.

@mkfeuhrer
Created April 30, 2020 08:37
Show Gist options
  • Save mkfeuhrer/a6dc87db90eefcb4fef6e0234ec2d0ef to your computer and use it in GitHub Desktop.
Save mkfeuhrer/a6dc87db90eefcb4fef6e0234ec2d0ef to your computer and use it in GitHub Desktop.
Postgres Commands

Get into the database - psql -U <username> -d <database-name>

To list all databases - \list

To list all tables in a database - \dt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment