summaryrefslogtreecommitdiff
path: root/mysql-test/suite/parts/r/partition_alter_maria.result
blob: 6343566e408d0f461b58b5ed984f9bb0070ec4ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
create table t1 (
pk bigint not null auto_increment,
dt datetime default null,
unique (pk, dt)
) engine=aria row_format=dynamic
partition by range  columns(dt) (
partition `p20171231` values less than ('2017-12-31'),
partition `p20181231` values less than ('2018-12-31')
);
insert into t1 values (1,'2017-09-28 15:12:00');
select * from t1;
pk	dt
1	2017-09-28 15:12:00
alter table t1 drop partition p20181231;
select * from t1;
pk	dt
1	2017-09-28 15:12:00
drop table t1;