select * from information_schema.PARTITIONS where TABLE_SCHEMA not in ('performance_schema','mysql') and SUBPARTITION_EXPRESSION is not null group by table_name
查询分区表的语句
2021-07-21 06:13:13
2021-07-21 06:13:13
select * from information_schema.PARTITIONS where TABLE_SCHEMA not in ('performance_schema','mysql') and SUBPARTITION_EXPRESSION is not null group by table_name