Skip to content

Instantly share code, notes, and snippets.

@dannyduc
Created October 6, 2012 17:34
Show Gist options
  • Save dannyduc/3845549 to your computer and use it in GitHub Desktop.
Save dannyduc/3845549 to your computer and use it in GitHub Desktop.
postgresql commands
Location:
/Applications/Postgres.app/Contents/MacOS/bin/psql
JDBC Properties:
database.driverClassName=org.postgresql.Driver
database.url=jdbc\:postgresql\://localhost\:5432/salesquote
database.username=
database.password=
Start command:
psql
Create database:
create database salesquote
Help:
\?
List Databases:
\list
select * from pg_database where datistemplate = false;
List tables:
\dt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment