标签: mysql sql
这个陈述的替代方法是什么?
between date_sub(curdate(), Interval 12 month) and date_sub(curdate(),Interval 1 day)
答案 0 :(得分:0)
有些是这样的:
SELECT * FROM yourtable WHERE (`start` >= :start) AND (`end` <= :end) OR (`start` <= :end) AND (`end` >= :start);