#
SQL
#
Commands
\q # To quit the psql:
\l # List all databases
\dv # List all views:
\dt # Lists all tables in a current database.
\du # List all users
#
Database
CREATE DATABASE [IF NOT EXISTS] db_name;
DROP DATABASE [IF EXISTS] db_name;
#
Tabls
SELECT * FROM table_name;