MySQL Forums
Forum List  »  InnoDB

Error
Posted by: oldrock oldrock
Date: October 27, 2010 05:33AM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
Error
1498
October 27, 2010 05:33AM
692
October 28, 2010 09:24PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.