When I run this SQL query:
SELECT u.*, o.*
FROM users u, orders o
WHERE
TO_DAYS(o.order _date)
BETWEEN
TO_DAYS('2003-09-20')-10
AND
TO_DAYS('2003-09-20')+10
AND
o.client_id = u.user_id;
I get this error:
You have an arror in your SQL syntax '' at line 1
As you see, this error message have nothing to do
with the stucture of my tables or with what they contain.
SYNTAX ERROR ??????????????? ????
Help!
SELECT u.*, o.*
FROM users u, orders o
WHERE
TO_DAYS(o.order _date)
BETWEEN
TO_DAYS('2003-09-20')-10
AND
TO_DAYS('2003-09-20')+10
AND
o.client_id = u.user_id;
I get this error:
You have an arror in your SQL syntax '' at line 1
As you see, this error message have nothing to do
with the stucture of my tables or with what they contain.
SYNTAX ERROR ??????????????? ????
Help!
Comment