Mysql Drop Table Query

The DROP TABLE statement is used to drop an existing table in a database.

It is very easy to drop an existing MySQL table, but you need to be very careful while deleting any existing table because the data lost will not be recovered after deleting a table.

First you can need database connection in php

Code

$sql = "DROP TABLE users"; 
$result = mysqli_query($con,$sql);

Leave a Reply

Your email address will not be published. Required fields are marked *