In this article, we will learn how to create a Database using SQL query.

To create a new SQL database, the CREATE DATABASE statement is used.

Syntax

CREATE DATABASE DatabaseName;

Example

The subsequent statement would create a database named “TheCodeHubs”.

CREATE DATABASE TheCodeHubs;

 

Also, check How To Use Comments In SQL