計算某時間段內ERP中的節假日中應排除的天數
-
longwansheng
2011-06-16 08:53:57
-
ERP
-
原创
create or replace function gobo_calendar_exception_dates(incode in varchar2,fdate in date,add_days in number)
return number
is
rnum number;
begin
select 0
-
(select count(1) from BOM_CALENDAR_EXCEPTIONS --BOM_CALENDAR_DATES --BOM_CALENDARS
where calendar_code=incode
and exception_set_id=-1
and exception_type=2
and exception_date>=fdate
and exception_date=fdate
and exception_date[@more@]