时间:2021-07-01 10:21:17 帮助过:3人阅读
+----+-------------+-------------------------------+------------+-------+---------------+---------+---------+------+-------+--------------------------+
##删除分区
mysql> alter table baby_account_change_log drop partition p0;
Query OK, 0 rows affected (0.01 sec)
二、增加分区
#错误提示删除存储最大值分区
mysql> alter table baby_account_change_log add partition(PARTITION p13 VALUES LESS THAN (unix_timestamp(‘2017-12-31 23:59:59‘)));
ERROR 1481 (HY000): MAXVALUE can only be used in last partition definition
#删除存储最大值分区
mysql> alter table baby_account_change_log drop partition p12;
##增加新的分区
mysql> alter table baby_account_change_log add partition(PARTITION p12 VALUES LESS THAN (unix_timestamp(‘2017-12-31 23:59:59‘)));
本文出自 “影子骑士” 博客,请务必保留此出处http://andylhz2009.blog.51cto.com/728703/1931929
MySQL5.5 RANGE分区增加删除处理
标签:mysql 分区 patition