22 lines
480 B
Plaintext
22 lines
480 B
Plaintext
SET sql_mode=ORACLE;
|
|
|
|
--error ER_PARSE_ERROR
|
|
SELECT DECODE(10);
|
|
--error ER_PARSE_ERROR
|
|
SELECT DECODE(10,10);
|
|
|
|
SELECT DECODE(10,10,'x10');
|
|
SELECT DECODE(11,10,'x10');
|
|
|
|
SELECT DECODE(10,10,'x10','def');
|
|
SELECT DECODE(11,10,'x10','def');
|
|
|
|
SELECT DECODE(10,10,'x10',11,'x11','def');
|
|
SELECT DECODE(11,10,'x10',11,'x11','def');
|
|
SELECT DECODE(12,10,'x10',11,'x11','def');
|
|
|
|
EXPLAIN EXTENDED SELECT DECODE(12,10,'x10',11,'x11','def');
|
|
|
|
CREATE TABLE decode (decode int);
|
|
DROP TABLE decode;
|