56,677
社区成员
发帖
与我相关
我的任务
分享
SELECT * FROM (
SELECT * from table1 where DATE_SUB(CURDATE(),INTERVAL 2 DAY) <= date(yuer_time) desc limit 0,1
union all
select * from table2 where DATE_SUB(CURDATE(),INTERVAL 2 DAY) <= date(yuer_time) desc limit 0,1
union all
select * from table3 where DATE_SUB(CURDATE(),INTERVAL 2 DAY) <= date(yuer_time) desc limit 0,1
union all
select * from table4 where DATE_SUB(CURDATE(),INTERVAL 2 DAY) <= date(yuer_time) desc limit 0,1)t
order by id