Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

CREATE DATABASE

CREATE DATABASE

The CREATE DATABASE command is employed to establish a new SQL database.

The subsequent SQL statement creates a database named “testDB”:

Example

CREATE DATABASE testDB;

 

Note: Ensure you possess administrative privileges before creating any database. After creating a database, you can verify its existence in the database list using the following SQL command: SHOW DATABASES;