很方便的.
.<?PHP
$hostname ='localhost';
$userid = 'user';
$password = 'passWord';
$dbname = 'dbname';
$connect = MySQL_connect($hostname,$userid,$passWord);
MySQL_select_db($dbname);
$result = MySQL_query("show table status from $dbname",$connect);
while($data=MySQL_fetch_array($result)) {
MySQL_query("drop table $data[Name]");
}
?>