mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
f31cb5dd8e
into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-5.0 mysql-test/r/gis-rtree.result: Auto merged mysql-test/r/ansi.result: Merged from 4.1 mysql-test/r/auto_increment.result: Merged from 4.1 mysql-test/r/mysqldump.result: Merged from 4.1 mysql-test/r/symlink.result: Merged from 4.1 mysql-test/t/auto_increment.test: Merged from 4.1 mysql-test/t/mysqldump.test: Merged from 4.1 sql/set_var.cc: Merged from 4.1 sql/sql_show.cc: Merged from 4.1
48 lines
1.1 KiB
Text
48 lines
1.1 KiB
Text
drop table if exists t1;
|
|
set sql_mode="MySQL40";
|
|
select @@sql_mode;
|
|
@@sql_mode
|
|
MYSQL40,HIGH_NOT_PRECEDENCE
|
|
set @@sql_mode="ANSI";
|
|
select @@sql_mode;
|
|
@@sql_mode
|
|
REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
|
|
SELECT 'A' || 'B';
|
|
'A' || 'B'
|
|
AB
|
|
CREATE TABLE t1 (id INT, id2 int);
|
|
SELECT id,NULL,1,1.1,'a' FROM t1 GROUP BY id;
|
|
id NULL 1 1.1 a
|
|
SELECT id FROM t1 GROUP BY id2;
|
|
id
|
|
drop table t1;
|
|
SET @@SQL_MODE="";
|
|
CREATE TABLE t1 (i int auto_increment NOT NULL, PRIMARY KEY (i));
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`i` int(11) NOT NULL auto_increment,
|
|
PRIMARY KEY (`i`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
SET @@SQL_MODE="MYSQL323";
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`i` int(11) NOT NULL auto_increment,
|
|
PRIMARY KEY (`i`)
|
|
) TYPE=MyISAM
|
|
SET @@SQL_MODE="MYSQL40";
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`i` int(11) NOT NULL auto_increment,
|
|
PRIMARY KEY (`i`)
|
|
) TYPE=MyISAM
|
|
SET @@SQL_MODE="NO_FIELD_OPTIONS";
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`i` int(11) NOT NULL,
|
|
PRIMARY KEY (`i`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
DROP TABLE t1;
|