Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

resetting cursors

425460Oct 5 2004 — edited Oct 8 2004
I need to return a cursor of results to my Java class.

I also want to process all the entries in the cursor first to calculate a hash.

Now I can do this by effectively running the query twice, but it would be nice if I could 'reset' the cursor having fetched all the items and calculated my hash function.

The docs seem to imply that this can be done, but I haven't found out the mechanics of this.

Also at the moment I'm just using a SYS_REFCURSOR to return stuff to java and I'm not entirely sure it works the same with the sort of cursor you use to fetch...

Thanks

Iain
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2004
Added on Oct 5 2004
15 comments
983 views