50
50
PRIMARY KEY (GROUP_ID,LANG_ID),
52
52
ALTER TABLE t1 CHANGE NAME NAME CHAR(80) not null;
53
SHOW FULL COLUMNS FROM t1;
54
Field Type Collation Null Key Default Extra Privileges Comment
55
GROUP_ID int NULL NO PRI 0 #
56
LANG_ID int NULL NO PRI 0 #
57
NAME varchar(80) utf8_general_ci NO MUL NULL #
54
Field Type Null Key Default Extra
57
NAME varchar(80) NO MUL NULL
59
59
create table t1 (n int);
60
60
insert into t1 values(9),(3),(12),(10);
350
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
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 Plugin_name
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
354
alter table t1 modify a int;
355
355
show table status like 't1';
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 Plugin_name
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
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;
359
359
insert into t1 (a) values(1);
360
360
show table status like 't1';
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 Plugin_name
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
363
363
CREATE TABLE t1 (a int PRIMARY KEY, b INT UNIQUE);
364
364
ALTER TABLE t1 DROP PRIMARY KEY;