Skip to main content

CREATE DATABASE

Introduced or updated: v1.2.339

Create a database.

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

Syntax

CREATE [ OR REPLACE ] DATABASE [ IF NOT EXISTS ] <database_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;
Did this page help you?
Yes
No
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today