Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Equivalent of hold cursor in pl/sql
I wrote a small package with fetches rows in a table.
The pseudo code looks like this
procedure abc ( fi_id in number ) is
cursor xyz is select .................
loop
fetch xyz into .... exit when not found;
loop for a list of fi_id's
package.abc(current fi_id);
end loop;
This takes too much time. Looks like the open/close cursor every time is eating up lots of resources. I cannot do one fetch because the list of fi_id could be random. How do i do something like hold_cursor in pl/sql. I have done this is proc*c or oci. Any ideas ?
Thanks
-Naren
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Received on Wed Apr 21 1999 - 15:06:23 CDT
![]() |
![]() |