Skip to content

Tags

On this page

Postgresql Tips

0. Enter psql

psql

Enter Database

\c database_name

Show all Tables

\d

Show Table structure

\d table_name

Pretty print table

\x on

Alter table

See https://www.postgresql.org/docs/current/sql-altertable.html

Edit this page
Last updated on 11/22/2021