SQL Create DataBase

The SQL Create DataBase statement is used to create a new database in SQL.

Create DataBase Syntax :

The syntax of the Create DataBase is −

CREATE DATABASE databasename;


Create DataBase Example :

The Example of the Create DataBase is −

CREATE DATABASE myDB;

After a database is created, you can view it in the list of databases with the following SQL command: SHOW DATABASES;

SHOW DATABASES;
----------------
testDB            
letsfindcourse     
LfcDB              
test               
myDB    




Visit :


Discussion



* You must be logged in to add comment.