mysql查询一个数据库的所有非空表(及PHP替换函数)

MySQL:实例:查询一个数据库的所有非空表,并按所含记录数降序排列;

select table_schema,table_name,table_rows from information_schema.tables where table_schema='数据库名' and table_rows!=0 order by table_rows desc

PS:


mysql查询一个数据库的所有非空表(及PHP替换函数)_第1张图片
str_repalce的应用举例

你可能感兴趣的:(mysql查询一个数据库的所有非空表(及PHP替换函数))