DROP {DATABASE | SCHEMA} [IF EXISTS] database_name [RESTRICT | CASCADE]
DATABASE|SCHEMA: Specify the database or schema.database_name: Database nameRESTRICT: The database is not deleted if it contains tables. If not specified, the RESTRICT mode is used by default.CASCADE: All databases and tables are deleted forcibly.-- Drop the database and it's tablesDROP DATABASE test CASCADE;-- Drop the database using IF EXISTSDROP DATABASE IF EXISTS test;
Feedback