Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to refresh cursor-values in pl/sql

Status
Not open for further replies.

mokesql

Programmer
Sep 6, 2001
30
AT
hey!
is it possible to refresh cursor-values during a pl/sql procedure. my problem is that at the declaration time of the cursror there is no date in the table where the cursor should take his date from. but during the procedure i fill the table and then i want this date in the cursor. is there a possibility of that? please help me as quick as possible, thnx

kemo
 

If I understand you right, you wish to update a table included in the cursor you are currently looping and expecting the cursor values updated as well. This is not possible, because a cursor is a work area once opened, executes the query associated with the cursor, identifies the result set, and positions the cursor before the first row. The result set will then consist of rows with the conditions before the cursor opened.

Can you post your original script/procedure to better understand your requirements?

 
You may open cursor as many times as you wish (don't forget to close it if already opened).
Your declaration does not matter, the data is fixed while opening, not declaring.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top