How to create databases
To create a database, run the CREATE DATABASE command:\l command to list all databases in the cluster.
When a new database is created, you don’t automatically switch to it. Use the \c <name> command to connect to the database you just created.
How to modify databases
To make changes to a database, run the ALTER DATABASE command:How to delete databases
To delete a database, run the DROP DATABASE command. This operation cannot be undone.Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.