English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Usage and Examples of SQL CREATE DATABASE Keyword

SQL Keyword Reference

CREATE DATABASE (Create Database)

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

The following SQL creates a database named "testDB":

CREATE DATABASE testDB;

Tip:Before creating any database, make sure you have administrative privileges. After creating a database, you can check it in the database list using the following SQL command: SHOW DATABASES;

SQL Keyword Reference