Mysql查看分区

SELECT
      partition_name part, 
      partition_expression expr, 
      partition_description descr, 
      table_rows 
FROM
      INFORMATION_SCHEMA.partitions 
WHERE
      TABLE_SCHEMA = SCHEMA() 
AND TABLE_NAME='user_table' ;     (其中user_table是你想查看的分区表名称)

猜你喜欢

转载自blog.csdn.net/David_jiahuan/article/details/80092022