mysql 逻辑表达式化简
求化简
select * from t where ((begintime<endtime and hour(now())<endtime and hour(now())>=begintime) or (begintime>endtime and (hour(now())<endtime or hour(now())>=begintime)))
slikine
10 years, 4 months ago