Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1957

Error (1 reply)

$
0
0
I have got the following 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 'HOURs)


While executing this query

select * from schedule WHERE
date1
BETWEEN
DATE_SUB(NOW(), INTERVAL 8 HOURs)
AND
DATE_ADD(NOW(), INTERVAL 30 MINUTES)

Any help would do great for me
thanks in advance

Viewing all articles
Browse latest Browse all 1957

Trending Articles