Re: dynamic cursors (OCI)

From: Anurag Varma <avdbi_at_nospam.hotmail.com>
Date: Mon, 17 Sep 2001 18:13:01 GMT
Message-ID: <N2rp7.2098$2n.285937_at_news02.optonline.net>


There might be other/better answers to this. One way to do this is use ROWID which essentially serves the same purpose as "WHERE CURRENT OF" i.e.
CURSOR c IS

SELECT rowid, a, b from tab for update;
               ^^^^^

...
...
Update tab set ..... WHERE rowid = c.rowid;
                                                         ^^^^^^

Anurag

"Massis Isagholian" <massis_at_socal.rr.com> wrote in message news:qMqp7.34$5o3.44010_at_nnrp2.sbc.net...
>
> The FetchRecord function below, uses a server-side cursor to issues a
 SELECT
> statement which retrieve a single row of data. Later on, the application
> needs to update the row and release the concurrency lock by issuing an
> "UPDATE ....... FOR THE CURRENT OF CURSORID" statement.
>
> My problem is that I don't see a way to do this using the OCI interface.
>
> Thanks for you help.
> Massis
>
Received on Mon Sep 17 2001 - 20:13:01 CEST

Original text of this message