分区的信息是记录在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‘
;
MySQL 分区表各个分区的行数
标签:
查看更多关于MySQL 分区表各个分区的行数的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did118893