How To Create SQL DB Using Query

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

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe

Select Categories