projects:sandbox:database
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| projects:sandbox:database [2023/03/11 01:54] – [database] jhagstrand | projects:sandbox:database [2023/03/11 01:54] (current) – jhagstrand | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| psql -U voyccom_jhagstrand -d voyccom_mai | psql -U voyccom_jhagstrand -d voyccom_mai | ||
| (password is in .pgpass) | (password is in .pgpass) | ||
| + | | ||
| \h list SQL commands | \h list SQL commands | ||
| \? list psql commands | \? list psql commands | ||
| \dt list tables in public schema | \dt list tables in public schema | ||
| + | | ||
| SELECT * FROM information_schema.tables WHERE table_schema = ' | SELECT * FROM information_schema.tables WHERE table_schema = ' | ||
| + | | ||
| SELECT column_name, | SELECT column_name, | ||
| + | | ||
| select table_schema, | select table_schema, | ||
projects/sandbox/database.1678517662.txt.gz · Last modified: 2023/03/11 01:54 by jhagstrand