We can drop table or database by using DROP keyword.
Syntax:
The DROP TABLE statement is used to delete a table.
DROP TABLE table_name;
The DROP DATABASE statement is used to delete a database.
DROP DATABASE database_name;
Example: Suppose you have created table named "user" then the below statement will delete the user table from your database.
DROP TABLE user;
You have created database named "demo" then the below statement will delete your database.
DROP DATABASE demo;
Hope this will help you :)
0 Comment(s)