时间:2021-07-01 10:21:17 帮助过:18人阅读
以下为引用的内容: .$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]"); } ?> |
http://www.bkjia.com/PHPjc/363978.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/363978.htmlTechArticle如果不想删除库,只想删除库里的所有表,那就用这个脚本吧呵呵 很方便的. 以下为引用的内容: .?php $hostname ='localhost'; $userid = 'user'; $passwo...