sql - Searching date MySql -
i have row in mysql table 'a'
values 'date'='2015-06-01'
, 'hour' = 17:00:00
my problem can select row
hour between "16:30:00" , "17:30:00"
but cant date = 2015-06-01
.
i need full statement this:
select * `a` (date = 2015-06-01) , (hour between "16:30:00" , "17:30:00")
you need quotes around date too
select * `a` `date` = '2015-06-01' , `hour` between '16:30:00' , '17:30:00'
Comments
Post a Comment