查看Mysql表分区语句

SELECT 
  partition_name part,  
  partition_expression expr,  
  partition_description descr,  
  table_rows  
FROM 
  INFORMATION_SCHEMA.partitions  
WHERE 
  TABLE_SCHEMA = schema()  
  AND TABLE_NAME='table';  

  

posted @ 2014-07-23 18:15  第十章  阅读(16692)  评论(3编辑  收藏  举报