Skip to main content
CREATE DATABASE is used to create databases. Tip This operation requires the CREATE DATABASE privilege on the target catalog. You can follow the instructions in GRANT to grant this privilege.

Syntax

Parameters

db_name: the name of the database to create. For the naming conventions, see System limits. PROPERTIES (Optional) storage_volume: Specifies the name of the storage volume that is used to store the database in a shared-data cluster. If not provided, the default storage volume will be attached to the database. The property can be changed via ALTER DATABASE statement.

Examples

  1. Create the database db_test.
  2. Create the cloud-native database cloud_db with the storage volume s3_storage_volume.

References