;

SQL CREATE, DROP DATABASE


In this tutorial, we will learn how to CREATE DATABASE and DROP DATABASE using SQL.

SQL CREATE and DROP DATABASE

SQL CREATE DATABASE

CREATE DATABASE statement is used to create a new SQL database.

Syntax - CREATE DATABASE
CREATE DATABASE databaseName;

Example of CREATE DATABASE

For creating a new SQL database, a query will be:

Example - CREATE DATABASE
CREATE DATABASE test_DB;

SQL DROP DATABASE

DROP DATABASE statement is used to drop or deleting an existing SQL database.

Syntax - DROP DATABASE
DROP DATABASE databaseName;

Example of DROP DATABASE

For dropping or deleting an existing SQL database, a query will be:

Example - DROP DATABASE
DROP DATABASE test_DB;