Skip to content

DROP

DROP DATABASE testDB;
Query OK, 0 rows affected (0.03 sec)

The DROP DATABASE statement is used to delete a database in SQL. In the provided example, the database named “testDB” is deleted. The output indicates that the query was successful and no rows were affected as it was a database-level operation, not a table-level operation.