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