MySQL 分区表各个分区的行数

分区的信息是记录在information_schema.partitions 这个表里的。它不能直接定位行所在的分区,但它可查到每个分区中有多少行。

例子:

select partition_name as part,partition_expression as expr,partition_description as descr,table_rows from information_schema.partitions

where table_schema= schema() and table_name='t'
;

posted on 2015-05-09 23:36  蒋乐兴的技术随笔  阅读(1772)  评论(0编辑  收藏  举报

导航