获取mysql分区表信息的几种方法——
--1.
show create table 表名
--可以查看创建分区表的create语句
--2.
show table status
--可以查看表是不是分区表
--3.
--查看information_schema.partitions表
select
partition_name part,
partition_expression expr,
partition_description descr,
table_rows
from information_schema.partitions where
table_schema = schema()
and table_name='test';
--可以查看表具有哪几个分区、分区的方法、分区中数据的记录数等信息
--4.
explain partitions select语句
--通过此语句来显示扫描哪些分区,及他们是如何使用的.