Debian Codegraph @

mysql-test/suite/parts/inc/partition_key_4col.inc

raw
1 eval create table t1 (a date not null, b varchar(50) not null, c varchar(50) not null, d enum('m', 'w'), primary key(a,b,c,d)) engine=$engine
2 charset latin1
3 partition by key (a,b,c,d) (
4 partition pa1 max_rows=20 min_rows=2,
5 partition pa2 max_rows=30 min_rows=3,
6 partition pa3 max_rows=30 min_rows=4,
7 partition pa4 max_rows=40 min_rows=2);
8 show create table t1;
9 insert into t1 values
10 ('1975-01-01', 'abcde', 'abcde','m'),
11 ('1983-12-31', 'cdef', 'srtbvsr', 'w'),
12 ('1980-10-14', 'fgbbd', 'dtzndtz', 'w'),
13 ('2000-06-15', 'jukg','zikhuk','m');
14 select * from t1;
15 --sorted_result
16 select * from t1 where a<19851231;
17 drop table t1;
18