2020-09-27
MySQL 借助INFORMATION_SCHEMA.TABLES 精确 统计 表记录数
SELECT CONCAT(
'SELECT "',
table_name,
'" AS table_name, COUNT(*) AS exact_row_count FROM `',
table_schema,
'`.`',
table_name,
'` UNION '
)
FROM INFORMATION_SCHEMA.TABLES
W...
转载
2020-09-27 19:41:08 ·
135 阅读 ·
0 评论