timesten内存数据库比较日期是不是同一天,低效的方法
to_char(create_date,'yyyymmdd')=to_char(sysdate NUMTODSINTERVAL(60*60*24,'SECOND'),'yyyymmdd')
oracle 数据库低效的方法
to_char(create_date,'yyyymmdd')=to_char(sysdate-1,'yyyymmdd')
2个数据库通用高效的方法
trunc(create_date)=trunc(sysdate)-NUMTODSINTERVAL(1,'DAY')
数据库日期比较
最新推荐文章于 2021-11-19 18:01:15 发布