Files
cheatsheets/postgresql.md
2015-11-24 15:30:42 +11:00

219 B

title
title
Postgresql

Console

$ psql

Commands

  • Show tables: \dt
  • Show databases: \l
  • Show columns of a table: \d table or \d+ table

Creating database

 $ createdb databasename