CREATE DATABASE

AttentionThis page documents an earlier version. Go to the latest (v2.1)version.

Synopsis

The CREATE DATABASE statement creates a database that functions as a grouping mechanism for database objects such as tables.

Syntax

Diagram

CREATE DATABASE - 图1

Grammar

  1. create_database ::= CREATE DATABASE database_name

Where

  • database_name is an identifier.

Semantics

  • An error is raised if the specified database_name already exists.

See Also

DROP DATABASEOther PostgreSQL Statements