Hi All,
This might be a silly question but..., I am trying to write a function in oracle that returns multiple values.I looked at some of the forums and online docs and found out that functions in oracle returns single value. Is there a way we can write this to return multipl values.If yes,can someone post the syntax of the function.I have some thing like this
Create Function Fun(MinDate In Date,MaxDate,WeekDays Out number,WeekEnds out number) return as number
is
Begin
--My logic goes here to calculate WeekDays and WeekEnds.
--say assigned the values to WeekDays and WeekEnds
WeekEnds:= 3;
WeekDays:= 7;
Return WeekEnds,WeekDays --Does this Work ?
End
This might be a silly question but..., I am trying to write a function in oracle that returns multiple values.I looked at some of the forums and online docs and found out that functions in oracle returns single value. Is there a way we can write this to return multipl values.If yes,can someone post the syntax of the function.I have some thing like this
Create Function Fun(MinDate In Date,MaxDate,WeekDays Out number,WeekEnds out number) return as number
is
Begin
--My logic goes here to calculate WeekDays and WeekEnds.
--say assigned the values to WeekDays and WeekEnds
WeekEnds:= 3;
WeekDays:= 7;
Return WeekEnds,WeekDays --Does this Work ?
End