Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: WITH HOLD cursors in Oracle stored procs

Re: WITH HOLD cursors in Oracle stored procs

From: <fitzjarrell_at_cox.net>
Date: 19 Jan 2006 20:39:46 -0800
Message-ID: <1137731986.351027.220060@g44g2000cwa.googlegroups.com>

Aakash wrote:
> Is it possible for a stored proc written in PL/SQL to return a
> refcursor which is WITH HOLD? I tried the following syntax:
> OPEN RS WITH HOLD FOR SELECT...
>
> Any help welcome!
> Thanks
> Aakash\

If you're attempting to prevent updates to data selected by that cursor then you would write your cursor select as: select ..... for update [ of ....];

There is no 'WITH HOLD' option for opening a cursor in Oracle.

David Fitzjarrell Received on Thu Jan 19 2006 - 22:39:46 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US