Skip to content
Christopher P. Brown edited this page Nov 14, 2022 · 3 revisions

postgreSQL command line

:sql:

  • Connecting: psql -d postgres

  • List databases: \l

  • Connect to database: \c <database>

  • (d)escribe (t)ables: \dt

  • table details: \d <table> and \d+ <table>

Resources

Clone this wiki locally