Creating a Database
The CREATE DATABASE command is used to create a database in SQL.
Syntax
CREATE DATABASE <database-name>;
Example
CREATE DATABASE Company;
Useful psql commands
| Command | Description |
|---|---|
| \l | Lists all of your databases |
| \c [database] | Connects to a database |
| \d | Describes the connected database |