In this tutorial you will learn about the MySQL Drop Tables and its application with practical example.
It is very easy to drop an existing MySQL table. While you are deleting a table you need to be very careful, because data lost will not be recovered after deleting a table.
Dropping Tables Using PHP:
1 |
DROP TABLE table_name |
Example:
1 2 3 4 5 |
<?php $con = mysql_connect("localhost","root",""); $sql = "DROP TABLE emp_info;"; mysql_query($sql,$con); ?> |