Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
怎么知道mysql表是分区的?是否有任何命令可以显示我的表有多少分区?
谢谢
在你的mysql上试试这个:
SHOW VARIABLES LIKE '%partition%';
它会给你 YES 或 NO 的值。但是要查找特定表的分区,请使用以下命令:
EXPLAIN PARTITIONS SELECT * FROM table;