时间:2021-07-01 10:21:17 帮助过:21人阅读
$conn=mysql_connect('localhost','root','');
mysql_select_db('数据库',$conn);
$sql="SELECT information_schema.TABLES.TABLE_NAME FROM information_schema. TABLES WHERE table_schema = '数据库'";
$res=mysql_query($sql);
while ($result = mysql_fetch_assoc($res)) {
$tables[]=$result['TABLE_NAME'];
};
echo "
表名 | 数据量 |
".$result_count[$v].' | '.$result_count['nums'].' |
http://www.bkjia.com/PHPjc/325888.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/325888.htmlTechArticle所以自己简单写了几行代码用来实现以上需求 执行结果: 代码如下:?php $conn=mysql_connect('localhost','root',''); mysql_select_db('数据库',...