341
341
drop table if exists t1;
343
343
Note 1051 Unknown table 't1'
344
create table t1 ( a varchar(10) not null primary key ) engine=myisam;
344
create TEMPORARY table t1 ( a varchar(10) not null primary key ) engine=myisam;
346
346
alter table t1 modify a varchar(10);
348
348
alter table t1 modify a varchar(10) not null;
349
349
drop table if exists t1;
350
create table t1 (a int, b int, c int, d int, e int, f int, g int, h int,i int, primary key (a,b,c,d,e,f,g,i,h)) engine=MyISAM;
350
create TEMPORARY table t1 (a int, b int, c int, d int, e int, f int, g int, h int,i int, primary key (a,b,c,d,e,f,g,i,h)) engine=MyISAM;
351
351
insert into t1 (a,b,c,d,e,f,g,h,i) values(1,1,1,1,1,1,1,1,1);
352
352
show table status like 't1';
353
353
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
354
t1 MyISAM X Fixed 1 37 X X X X X X X X utf8_general_ci NULL
355
354
alter table t1 modify a int;
356
355
show table status like 't1';
357
356
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
358
t1 MyISAM X Fixed 1 37 X X X X X X X X utf8_general_ci NULL
360
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;
358
create TEMPORARY 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;
361
359
insert into t1 (a) values(1);
362
360
show table status like 't1';
363
361
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
364
t1 MyISAM X Fixed 1 37 X X X X X X X X utf8_general_ci NULL
366
363
CREATE TABLE t1 (a int PRIMARY KEY, b INT UNIQUE);
367
364
ALTER TABLE t1 DROP PRIMARY KEY;