2003-05-13 18:26:07 +02:00
|
|
|
drop table if exists t1;
|
2003-10-08 17:53:31 +02:00
|
|
|
set sql_mode="MySQL40";
|
|
|
|
select @@sql_mode;
|
|
|
|
@@sql_mode
|
2004-11-27 20:26:46 +01:00
|
|
|
NO_FIELD_OPTIONS,MYSQL40,HIGH_NOT_PRECEDENCE
|
2003-10-08 17:53:31 +02:00
|
|
|
set @@sql_mode="ANSI";
|
|
|
|
select @@sql_mode;
|
|
|
|
@@sql_mode
|
2005-02-17 05:12:31 +01:00
|
|
|
REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI
|
2003-05-13 18:26:07 +02:00
|
|
|
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;
|
2005-02-17 05:12:31 +01:00
|
|
|
id
|
2003-05-13 18:26:07 +02:00
|
|
|
drop table t1;
|
2003-10-08 17:53:31 +02:00
|
|
|
SET @@SQL_MODE="";
|