5
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near ')' at line 1
7
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near ' 0)' at line 1
9
ERROR HY000: Received an invalid datetime value 'xxx'.
10
SELECT QUARTER("0000-00-00");
11
ERROR HY000: Received an invalid datetime value '0000-00-00'.
12
SELECT QUARTER("0000-01-01");
13
ERROR HY000: Received an invalid datetime value '0000-01-01'.
14
SELECT QUARTER("0001-00-01");
15
ERROR HY000: Received an invalid datetime value '0001-00-01'.
16
SELECT QUARTER("0001-01-00");
17
ERROR HY000: Received an invalid datetime value '0001-01-00'.
18
SELECT QUARTER("2000-02-30");
19
ERROR HY000: Received an invalid datetime value '2000-02-30'.
20
SELECT QUARTER("1900-02-29");
21
ERROR HY000: Received an invalid datetime value '1900-02-29'.
22
SELECT QUARTER('1976-15-15');
23
ERROR HY000: Received an invalid datetime value '1976-15-15'.
24
SELECT QUARTER("2009-01-12");
27
SELECT QUARTER("2009-04-22");
30
SELECT QUARTER("70-12-31");
33
SELECT QUARTER("99-12-31");
36
SELECT QUARTER("69-12-31");
39
SELECT QUARTER("0001-12-31");
42
SELECT QUARTER("9999-12-31");
45
SELECT QUARTER('07/31/2009');
48
SELECT QUARTER('20090916');
51
SELECT QUARTER('20090916091528');
52
QUARTER('20090916091528')
54
SELECT QUARTER("20090916091528.000000");
55
QUARTER("20090916091528.000000")
57
SELECT QUARTER('09-09-16');
60
SELECT QUARTER('09.09.16');
63
SELECT QUARTER('09/09/16');
66
SELECT QUARTER('09-09-16');
69
SELECT QUARTER('09-9-2');
72
SELECT QUARTER(20090916);
75
SELECT QUARTER(20090916091528);
76
QUARTER(20090916091528)
78
SELECT QUARTER(20090916091528.000001);
79
QUARTER(20090916091528.000001)
82
DROP TABLE IF EXISTS t1;
85
, date_fld DATE NOT NULL
86
, datetime_fld DATETIME NOT NULL
87
, timestamp_fld TIMESTAMP NOT NULL
88
, char_fld CHAR(22) NOT NULL
89
, varchar_fld VARCHAR(22) NOT NULL
90
, text_fld TEXT NOT NULL
91
, blob_fld BLOB NOT NULL
93
INSERT INTO t1 VALUES (
96
, "2007-11-30 16:30:19"
97
, "2007-11-30T16:30:19"
98
, "2007-11-30 16:30:19"
99
, "2007-11-30 16:30:19"
100
, "2007-11-30T16:30:19"
101
, "2007-11-30T16:30:19"
103
SELECT QUARTER(int_fld) FROM t1;
106
SELECT QUARTER(date_fld) FROM t1;
109
SELECT QUARTER(datetime_fld) FROM t1;
110
QUARTER(datetime_fld)
112
SELECT QUARTER(timestamp_fld) FROM t1;
113
QUARTER(timestamp_fld)
115
SELECT QUARTER(char_fld) FROM t1;
118
SELECT QUARTER(varchar_fld) FROM t1;
121
SELECT QUARTER(text_fld) FROM t1;
124
SELECT QUARTER(blob_fld) FROM t1;