Is it possible to have a common cursor or pre-parsed statement shared between two functions.
For example, I have this
JDBC app which calls foo1 as:
select foo1(varA, varB)
from table
where some condition...
After processing the results my app continues:
select foo2(varC, varD)
from table
where some condition...
Within foo1 and foo2 there is one SQL cursor that is the same, and I am wondering if there's a way to have these functions share a common SQL. I was thinking packages but I do not have much experience with it, so I am asking for some guidance.
Thanks
Leslie
[ July 01, 2003: Message edited by: Leslie Chaim ]