1. 首页
  2. 数据库
  3. 其它
  4. 通过php快速统计某个数据库中每张表的数据量

通过php快速统计某个数据库中每张表的数据量

上传者: 2021-02-01 04:11:44上传 PDF文件 32.13KB 热度 9次
所以自己简单写了几行代码用来实现以上需求 执行结果: 复制代码 代码如下: <?php $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)) { $
下载地址
用户评论