![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The following from the manual works fine: SELECT MAKEDATE(2001,365), MAKEDATE(2004,365); However: SELECT MAKEDATE(2001,365), MAKEDATE(2004,365) FROM A; Gives the error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '( 2001 , 365 ) , MAKEDATE ( 2004 , 365 ) FROM A LIMIT 0, 30' at line 1 This is on 4.1.22 What am I doing wrong? |
#3
| |||
| |||
|
|
On 9 May, 14:35, Captain Paralytic <paul_laut... (AT) yahoo (DOT) com> wrote: The following from the manual works fine: SELECT MAKEDATE(2001,365), MAKEDATE(2004,365); However: SELECT MAKEDATE(2001,365), MAKEDATE(2004,365) FROM A; Gives the error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '( 2001 , 365 ) , MAKEDATE ( 2004 , 365 ) FROM A LIMIT 0, 30' at line 1 This is on 4.1.22 What am I doing wrong? Must be a version bug, works fine in v5 No, it is a server "mode" setting. Note that there is a space character |
#4
| |||
| |||
|
|
Captain Paralytic wrote: On 9 May, 14:35, Captain Paralytic <paul_laut... (AT) yahoo (DOT) com> wrote: The following from the manual works fine: SELECT MAKEDATE(2001,365), MAKEDATE(2004,365); However: SELECT MAKEDATE(2001,365), MAKEDATE(2004,365) FROM A; Gives the error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '( 2001 , 365 ) , MAKEDATE ( 2004 , 365 ) FROM A LIMIT 0, 30' at line 1 This is on 4.1.22 What am I doing wrong? Must be a version bug, works fine in v5 No, it is a server "mode" setting. Note that there is a space character between the function name and the opening parenthesis. So, to the Original Poster: do not use whitespace between the function names and their parameter list. Best regards, -- Willem Bogaerts Application smith Kratz B.V.http://www.kratz.nl/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |