how to drop partition without dropping data in MySQL?

前端 未结 4 1656
执笔经年
执笔经年 2021-02-03 23:11

I have a table like:

create table registrations( 
id int not null auto_increment primary key,
name varchar(50),
mobile_number varchar(13)) 
engine=innodb 
partit         


        
4条回答
  •  说谎
    说谎 (楼主)
    2021-02-03 23:40

    If you want to rearrange the data while keeping the partitions,
    you can take a look at REORGANIZE PARTITION and COALESCE PARTITION clauses of ALTER TABLE
    command.
    http://dev.mysql.com/doc/refman/5.1/en/alter-table.html

提交回复
热议问题