32
32
add zeroval int not null default 0,
35
35
update t1 set str1='aaa', str2='bbb', str3=concat(key2, '-', key1 div 2, '_' ,if(key1 mod 2 = 0, 'a', 'A'));
36
36
alter table t1 add primary key (str1, zeroval, str2, str3);
37
37
explain select * from t1 where key1 < 5 or key2 > 197;