1--disable_warnings 2let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='DEFAULT_STORAGE_ENGINE'`; 3--enable_warnings 4 5--disable_warnings 6DROP TABLE IF EXISTS t1; 7--enable_warnings 8 9 10SET NAMES cp932; 11CREATE TABLE t1 (c1 INTEGER COMMENT '������������������������������������������������������������������������������������������������������������������������', c12 INTEGER, c13 DATETIME, c14 CHAR(10), PRIMARY KEY(c1), INDEX(c12,c13)) COMMENT='�A�C�E�G�I�J�L�N�P�R�A�C�E�G�I�J�L�N�P�R�A�C�E�G�I�J�L�N�P�R�A�C�E�G�I�J�L�N�P�R�A�C�E�G�I�J�L�N�P�R�A�C�E�G�I�J�L�N�P�R'; 12SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1'; 13SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1'; 14--replace_result $ENGINE ENGINE 15SHOW CREATE TABLE t1; 16ALTER TABLE t1 ADD COLUMN c2 INTEGER COMMENT '�A����������������������������������������������������������������������������������������������������������������������'; 17ALTER TABLE t1 ADD COLUMN c3 INTEGER COMMENT '���C��������������������������������������������������������������������������������������������������������������������'; 18ALTER TABLE t1 ADD COLUMN c4 INTEGER COMMENT '�����E������������������������������������������������������������������������������������������������������������������'; 19ALTER TABLE t1 ADD COLUMN c5 INTEGER COMMENT '�������G����������������������������������������������������������������������������������������������������������������'; 20SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1'; 21SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1'; 22--replace_result $ENGINE ENGINE 23SHOW CREATE TABLE t1; 24ALTER TABLE t1 MODIFY COLUMN c3 CHAR(10); 25SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1'; 26SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1'; 27--replace_result $ENGINE ENGINE 28SHOW CREATE TABLE t1; 29ALTER TABLE t1 CHANGE COLUMN c4 c4_1 INTEGER COMMENT '����������������'; 30SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1'; 31SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1'; 32--replace_result $ENGINE ENGINE 33SHOW CREATE TABLE t1; 34ALTER TABLE t1 DROP COLUMN c2; 35SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1'; 36SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1'; 37--replace_result $ENGINE ENGINE 38SHOW CREATE TABLE t1; 39DROP TABLE t1; 40