SQL CREATE DATABASE Statement
The SQL CREATE DATABASE Statement
The CREATE DATABASE
statement is used to create a new SQL database.
SQL
CREATE DATABASE databasename;
CREATE DATABASE Example
The following SQL statement creates a database called “testDB”:
SQL
CREATE DATABASE testDB;
Important:
Make sure you have admin privilege before creating any database. Once a database is created, you can check it in the list of databases with the following SQL command: SHOW DATABASES
;
Feedback
Submit and view feedback