Skip to main content

CREATE DATABASE

Create a database.

Please note that creating database from a share is part of the Share feature in Databend Cloud. For more information, see Share.

Syntax

CREATE DATABASE [IF NOT EXISTS] <database_name> [FROM SHARE <share_name>]

Examples

The following example creates a database named test:

CREATE DATABASE test;

The following example creates a database named test from the share myshare:

CREATE DATABASE test FROM SHARE t;