396
396
insert into t1 (a) values(1);
397
397
show table status like 't1';
398
398
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
400
400
alter table t1 modify a int;
401
401
show table status like 't1';
402
402
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
405
405
create table t1 (a int not null default 0, b int not null default 0, c int not null default 0, d int not null default 0, e int not null default 0, f int not null default 0, g int not null default 0, h int not null default 0,i int not null default 0, primary key (a,b,c,d,e,f,g,i,h)) engine=MyISAM;
406
406
insert into t1 (a) values(1);
407
407
show table status like 't1';
408
408
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
411
411
CREATE TABLE t1 (a int PRIMARY KEY, b INT UNIQUE);
412
412
ALTER TABLE t1 DROP PRIMARY KEY;