Skip to main content

CREATE DATABASE

Note

SDK methods: createDatabase.

Create Database

CREATE DATABASE [IF NOT EXISTS] db_name;
CREATE DATABASE [IF NOT EXISTS] db_name WITH ("key" = "value", ...);

WITH values support ? binding and are passed as strings to the native CreateDatabaseReq. IF NOT EXISTS leaves an existing database's properties unchanged; use ALTER DATABASE to modify them.