postgresql

This is an old revision of the document!


PostgreSQL

psql -d palliabackend -U palliabackend

psql -d palliabackend -U palliabackend < test_data/foobar.sql

  • Connect to database: \c dbname username
  • List databases: \l
  • List tables: \dt
  • Describe table: \d table_name
  • List schemas of current database: \dn
  • List users: \du
  • Command history: \s
  • Quit shell: \q
  • postgresql.1594633770.txt.gz
  • Last modified: 2020/12/29 02:09
  • (external edit)