PostgreSQL is a powerful, open-source object-relational database system. When managing databases, the primary operations involve creating new storage containers, modifying their metadata, or removing them entirely.
The CREATE DATABASE statement is used to initialize a new database. In PostgreSQL, this essentially copies a template database (usually template1) into a new namespace.
Syntax:
CREATE DATABASE database_name;
Key Notes:
CREATEDB privilege or be a superuser.; to terminate a statement.\l in the psql terminal to list all databases and verify your changes.student_records rather than Student Records to avoid syntax errors involving spaces and capitalization.