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@]
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/92289/viewspace-1051226/
,如需转载,请注明出处,否则将追究法律责任。