CREATE DATABASE
Description
This statement 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
CREATE DATABASE [IF NOT EXISTS] <db_name>
db_name
: the name of the database to create. For the naming conventions, see System limits.
Examples
-
Create database
db_test
.CREATE DATABASE db_test;