2003-01-16 01:04:50 +01:00
|
|
|
drop table if exists t1;
|
|
|
|
CREATE TABLE `t1` (
|
|
|
|
a int not null auto_increment,
|
|
|
|
`pseudo` varchar(35) character set latin2 NOT NULL default '',
|
|
|
|
`email` varchar(60) character set latin2 NOT NULL default '',
|
|
|
|
PRIMARY KEY (a),
|
|
|
|
UNIQUE KEY `email` USING BTREE (`email`)
|
2003-12-10 05:31:42 +01:00
|
|
|
) ENGINE=HEAP CHARSET=latin1 ROW_FORMAT DYNAMIC;
|
2003-01-16 01:04:50 +01:00
|
|
|
set @@sql_mode="";
|
|
|
|
show variables like 'sql_mode';
|
|
|
|
Variable_name Value
|
|
|
|
sql_mode
|
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`a` int(11) NOT NULL auto_increment,
|
|
|
|
`pseudo` varchar(35) character set latin2 NOT NULL default '',
|
|
|
|
`email` varchar(60) character set latin2 NOT NULL default '',
|
|
|
|
PRIMARY KEY (`a`),
|
|
|
|
UNIQUE KEY `email` TYPE BTREE (`email`)
|
2003-12-10 05:31:42 +01:00
|
|
|
) ENGINE=HEAP DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
|
2003-01-16 01:04:50 +01:00
|
|
|
set @@sql_mode="ansi_quotes";
|
|
|
|
show variables like 'sql_mode';
|
|
|
|
Variable_name Value
|
|
|
|
sql_mode ANSI_QUOTES
|
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE "t1" (
|
|
|
|
"a" int(11) NOT NULL auto_increment,
|
|
|
|
"pseudo" varchar(35) character set latin2 NOT NULL default '',
|
|
|
|
"email" varchar(60) character set latin2 NOT NULL default '',
|
|
|
|
PRIMARY KEY ("a"),
|
|
|
|
UNIQUE KEY "email" TYPE BTREE ("email")
|
2003-12-10 05:31:42 +01:00
|
|
|
) ENGINE=HEAP DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
|
2003-01-16 01:04:50 +01:00
|
|
|
set @@sql_mode="no_table_options";
|
|
|
|
show variables like 'sql_mode';
|
|
|
|
Variable_name Value
|
|
|
|
sql_mode NO_TABLE_OPTIONS
|
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`a` int(11) NOT NULL auto_increment,
|
|
|
|
`pseudo` varchar(35) character set latin2 NOT NULL default '',
|
|
|
|
`email` varchar(60) character set latin2 NOT NULL default '',
|
|
|
|
PRIMARY KEY (`a`),
|
|
|
|
UNIQUE KEY `email` TYPE BTREE (`email`)
|
|
|
|
)
|
|
|
|
set @@sql_mode="no_key_options";
|
|
|
|
show variables like 'sql_mode';
|
|
|
|
Variable_name Value
|
|
|
|
sql_mode NO_KEY_OPTIONS
|
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`a` int(11) NOT NULL auto_increment,
|
|
|
|
`pseudo` varchar(35) character set latin2 NOT NULL default '',
|
|
|
|
`email` varchar(60) character set latin2 NOT NULL default '',
|
|
|
|
PRIMARY KEY (`a`),
|
|
|
|
UNIQUE KEY `email` (`email`)
|
2003-12-10 05:31:42 +01:00
|
|
|
) ENGINE=HEAP DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
|
2003-01-16 01:04:50 +01:00
|
|
|
set @@sql_mode="no_field_options,mysql323,mysql40";
|
|
|
|
show variables like 'sql_mode';
|
|
|
|
Variable_name Value
|
|
|
|
sql_mode NO_FIELD_OPTIONS,MYSQL323,MYSQL40
|
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`a` int(11) NOT NULL auto_increment,
|
|
|
|
`pseudo` varchar(35) NOT NULL default '',
|
|
|
|
`email` varchar(60) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`a`),
|
|
|
|
UNIQUE KEY `email` (`email`)
|
2003-12-10 05:31:42 +01:00
|
|
|
) ENGINE=HEAP ROW_FORMAT=DYNAMIC
|
2003-10-15 11:50:36 +02:00
|
|
|
set sql_mode="postgresql,oracle,mssql,db2,maxdb";
|
2003-06-04 17:28:51 +02:00
|
|
|
select @@sql_mode;
|
|
|
|
@@sql_mode
|
2003-10-15 11:50:36 +02:00
|
|
|
PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,POSTGRESQL,ORACLE,MSSQL,DB2,MAXDB,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS
|
2003-01-16 01:04:50 +01:00
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE "t1" (
|
|
|
|
"a" int(11) NOT NULL,
|
|
|
|
"pseudo" varchar(35) NOT NULL default '',
|
|
|
|
"email" varchar(60) NOT NULL default '',
|
|
|
|
PRIMARY KEY ("a"),
|
|
|
|
UNIQUE KEY "email" ("email")
|
|
|
|
)
|
|
|
|
drop table t1;
|