全部版块 我的主页
论坛 数据科学与人工智能 大数据分析 Oracle数据库及大数据解决方案
877 0
2018-11-08
select trunc(to_date(substr(20180607,1,6),'YYYYMM'), 'MM') as month_first
,add_months(trunc(to_date(substr(20180607,1,6),'YYYYMM') ,'MM'),1) as month_last from dual;


V_START_M :=trunc(to_date(substr(IN_DATE,1,6),'YYYYMM'), 'MM');--起始日期 月初
V_END_M   :=add_months(trunc(to_date(substr(IN_DATE,1,6),'YYYYMM') ,'MM'),1);--截止日期 下月初

select * from  t1 WHERE
--AND    SUBSTR(T1.year,1,6) = substr(in_date,1,6) --限制本月   :当year
AND    T1.year>=V_START_M  
AND    T1.year<V_END_M

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群