How to delete tables in mysql with example

To delete or drop tables in mysql use following syntax


Syntax:-

DROP TABLE table_name;

Example:-

To delete homedetails table we modify syntax to

DROP TABLE homedetails;

Note:-
# Before using this syntax, don`t forget to select database where table is present.
# After deleting table, all data inside that table is lost.

Previous Code:-
Rename table name

List Code:-
Mysql Codes

Next Code:-

Leave reply

Add your comments here

Back to Top