The SQL CREATE DATABASE statement is used to create a new SQL database.
Syntax
The basic syntax of this CREATE DATABASE statement is as follows −
CREATE DATABASE DatabaseName;
Always the database name should be unique within the RDBMS.
CREATE DATABASE Example
The following SQL statement creates a database called \”NewDB\”:
Example
CREATE DATABASE NewDB;
Make sure you have the admin privilege before creating any database. Once a database is created, you can check it in the list of databases