我有一个包含四个值的表
start_time1, end_time1, start_time2, END_TIME2
如何包含所有四个字段以检查当前时间。 (为两个领域做过)
这是我的sqlfiddle http://sqlfiddle.com/#!2/30164/5
select bus_start_time1 from vendor_del_avilability_Rrr where now() between bus_start_time1 and bus_end_time1 ;
答案 0 :(得分:0)
(start1和end1之间的now())和start2和end2之间的(now())