Created
October 6, 2012 17:34
-
-
Save dannyduc/3845549 to your computer and use it in GitHub Desktop.
postgresql commands
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
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