How to Create or Drop a Database using SQL

You can use the following statement in order to create a database using SQL:

CREATE DATABASE your_database_name;

Alternatively, you can use the following statement to drop a database using SQL:

DROP DATABASE your_database_name;

Example of creating and dropping a database using SQL

Let’s create a database called the test_database using this syntax:

CREATE DATABASE test_database;

And if you want to drop the database, then use:

DROP DATABASE test_database;

You can check the following page for additional SQL tutorials.