1. 当天 createdtime 参数 select? * from tablename t?where where trunc(sysdate)=trunc(t.createdtime); select * from tablename t where t.createdtime>=trunc(SYSDATE, 'MM') and t.createdtime<=last_day(SYSDATE) ? 3.当年 createdtime 参数 ? 1. 当天 createdtime 参数 select? * from tablename t?where where trunc(sysdate)=trunc(t.createdtime); select * from tablename t where t.createdtime>=trunc(SYSDATE, 'MM') and t.createdtime<=last_day(SYSDATE) ? 3.当年 createdtime 参数 |
Oracle获取当天,当月,当年的数据
最新推荐文章于 2024-04-29 10:32:00 发布