How to Create or Drop a Database using SQL

To create a database using SQL:

CREATE DATABASE your_database_name;

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 that database, then use:

DROP DATABASE test_database;

You can check the following page for additional SQL tutorials.

Leave a Comment