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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -