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
#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