~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/alter_table.result

  • Committer: Brian Aker
  • Date: 2010-02-14 02:02:48 UTC
  • mfrom: (1273.13.64 fix_is)
  • Revision ID: brian@gaz-20100214020248-bhovaejhz9fmer3q
MergeĀ inĀ data_dictionary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
PRIMARY KEY (GROUP_ID,LANG_ID),
51
51
KEY NAME (NAME));
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            #       
 
53
show COLUMNS FROM t1;
 
54
Field   Type    Null    Key     Default Extra
 
55
GROUP_ID        int     NO      PRI     0       
 
56
LANG_ID int     NO      PRI     0       
 
57
NAME    varchar(80)     NO      MUL     NULL    
58
58
DROP TABLE t1;
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
357
357
drop table t1;
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
362
362
drop table t1;
363
363
CREATE TABLE t1 (a int PRIMARY KEY, b INT UNIQUE);
364
364
ALTER TABLE t1 DROP PRIMARY KEY;