Complément 2 - Commandes PSQL
Complément 2 - Commandes PSQL
Lien : https://www.postgresqltutorial.com/postgresql-cheat-sheet/
psql -U [username];
For example, the following command uses the postgres user to access
the PostgreSQL database server :
psql -U postgres
\c database_name;
\c dvdrental;
\q
List all databases in the PostgreSQL database server
\l
\dn
\dv
\dt+
\d+ table_name
Managing databases
Create a new database :