Current Path : /home/usr.opt/mysql57/mysql-test/suite/innodb/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/innodb/t/index_length.test |
--source include/have_innodb_16k.inc CREATE TABLE abc(a int auto_increment PRIMARY KEY, b varchar(1024), c varchar(1024))ENGINE=INNODB; INSERT INTO abc (b,c) VALUES (repeat('b', 1024), repeat('c', 1024)); INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; INSERT INTO abc (b,c) SELECT b,c FROM abc; --replace_column 1 # SELECT DATA_LENGTH, INDEX_LENGTH from information_schema.TABLES WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME = 'abc'; ALTER TABLE abc add INDEX cc (c(800)); --replace_column 1 # SELECT DATA_LENGTH, INDEX_LENGTH from information_schema.TABLES WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME = 'abc'; ALTER TABLE abc add INDEX bb (b(800)); --replace_column 1 # SELECT DATA_LENGTH, INDEX_LENGTH from information_schema.TABLES WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME = 'abc'; DROP TABLE abc;