天天看点

日常中用到的sql语句

1、场景:定时任务,每天定时跑,获取前三天的数据:

日常中用到的sql语句

select * from PS2UMU_EMPLOYEE_VW where to_days(now()) - to_days(时间字段) <= 3;