Loading, please wait...

Database

How To Create A New Database


Introduction:

In this article, you will learn, how to create a new database in SQL.

The CREATE DATABASE statement is used to create new SQL database. One important thing is our database name should be different in the RDBMS.

 

 

Syntax:

The basic syntax to create database is as follows:

create database DatabaseName;

 

 

Example:

Step 1: First we open our SQL Server and then click on New Query.

 

 

 

Step 2: Subsequently, we write our query like -

create database demo;

and then execute our command.

 

 

 

Step 3: Now, our new database is ready.

 

 

 

Summary:
Thus, we learned, how to create a new database in SQL.