1 create table t1 (a float not null, primary key(a)) engine='MYISAM'
3 partition pa1 max_rows=20 min_rows=2,
4 partition pa2 max_rows=30 min_rows=3,
5 partition pa3 max_rows=30 min_rows=4,
6 partition pa4 max_rows=40 min_rows=2);
12 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
13 /*!50100 PARTITION BY KEY (a)
14 (PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 ENGINE = MyISAM,
15 PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 ENGINE = MyISAM,
16 PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 ENGINE = MyISAM,
17 PARTITION pa4 MAX_ROWS = 40 MIN_ROWS = 2 ENGINE = MyISAM) */
18 insert into t1 values (-3.402823466E+38), (3.402823466E+38), (-1.5), (-1), (0), (1), (1.5);
28 select * from t1 where a=1.5;
31 delete from t1 where a=1.5;
41 create table t2 (a float not null, primary key(a)) engine='MYISAM'
42 partition by key (a) partitions 10;
45 t2 CREATE TABLE `t2` (
48 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
49 /*!50100 PARTITION BY KEY (a)
51 insert into t2 values (-3.402823466E+38), (-3.402823466E+37), (-123.456), (0), (1234546.789), (123.456), (1.5);
61 select * from t2 where a=123.456;
63 delete from t2 where a=123.456;
73 select * from t2 where a=1.5;
76 delete from t2 where a=1.5;
87 select count(*) from t2;
91 create table t1 (a double not null, primary key(a)) engine='MYISAM'
92 partition by key (a) (
93 partition pa1 max_rows=20 min_rows=2,
94 partition pa2 max_rows=30 min_rows=3,
95 partition pa3 max_rows=30 min_rows=4,
96 partition pa4 max_rows=40 min_rows=2);
99 t1 CREATE TABLE `t1` (
102 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
103 /*!50100 PARTITION BY KEY (a)
104 (PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 ENGINE = MyISAM,
105 PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 ENGINE = MyISAM,
106 PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 ENGINE = MyISAM,
107 PARTITION pa4 MAX_ROWS = 40 MIN_ROWS = 2 ENGINE = MyISAM) */
108 insert into t1 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
111 -2.2250738585072e+208
114 -2.2250738585072e-208
119 select * from t1 where a=1.5;
122 delete from t1 where a=1.5;
125 -2.2250738585072e+208
128 -2.2250738585072e-208
133 create table t2 (a double not null, primary key(a)) engine='MYISAM'
134 partition by key (a) partitions 10;
135 show create table t2;
137 t2 CREATE TABLE `t2` (
140 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
141 /*!50100 PARTITION BY KEY (a)
143 insert into t2 values (-2.2250738585072014E+208), (-2.2250738585072014E-208), (-1.5), (-1), (0), (1.5), (1234.567), (2.2250738585072014E+208);
146 -2.2250738585072e+208
149 -2.2250738585072e-208
154 select * from t2 where a=1234.567;
157 delete from t2 where a=1234.567;
160 -2.2250738585072e+208
163 -2.2250738585072e-208
169 select count(*) from t2;