mysql constant number between and -


does mysql support ?

select sa.*, st.starttime, st.endtime, st.locationid, st.id timingid  ccf_session_attendee sa  left join ccf_session_timing st     on st.id=sa.timingid  "2014-11-02 07:00:00" between date_add(starttime, interval 1 minute) , date_sub(endtime, interval 1 minute)  

i couldn't figure out wrong , cant result. table have record starttime 2014-11-02 06:00:00 , endtime 2014-11-02 10:00:00.

you have error quotes. try this:

   select sa.*, st.starttime, st.endtime, st.locationid, st.id timingid       ccf_session_attendee sa  left join ccf_session_timing st        on st.id=sa.timingid      '2014-11-02 07:00:00' between date_add(starttime, interval 1 minute)                                     , date_sub(endtime, interval 1 minute)  

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -