4
# tbl10 and tbl100 are only used to fill the tables used during testing
6
k INT NOT NULL AUTO_INCREMENT,
10
INSERT INTO tbl10(i) VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(0);
12
CREATE TABLE tbl100 LIKE tbl10;
13
INSERT INTO tbl100(i) SELECT x.i FROM tbl10 AS x, tbl10 AS y;
18
--let $stmt= CREATE TABLE t10_$i (pk int PRIMARY KEY AUTO_INCREMENT, colidx int, col int, index (colidx))
20
--let $stmt= INSERT INTO t10_$i (colidx, col) SELECT k, k FROM tbl10
22
# Update index statistics
25
--let $stmt= CREATE TABLE t100_$i (pk int PRIMARY KEY AUTO_INCREMENT, colidx int, col int, index (colidx))
27
--let $stmt= INSERT INTO t100_$i (colidx, col) SELECT a.k, a.k FROM tbl10 a JOIN tbl10 b;
29
# Update index statistics