Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 537 Bytes

File metadata and controls

22 lines (12 loc) · 537 Bytes

The SQL CREATE DATABASE Statement

The CREATE DATABASE statement is used to create a new SQL database.

Syntax

CREATE DATABASE databasename;


CREATE DATABASE Example

The following SQL statement creates a database called "testDB":

Example

CREATE DATABASE testDB;

Tip: 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;

LINKS

[[DDL (Data Definition Language)]]