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!

delete a row in pl/sql

Status
Not open for further replies.

mokesql

Programmer
Sep 6, 2001
30
AT
hi guys!
i wanna delete a row from a table with pl/sql, but it`s not possible with the where current of curser funktion. where could be the error. it returns me the message that the curser must be declared with FOR UPDATE to use with CURRENT OF. plese help me ansd say what i should declare as for update. thx

kemo
 

For your cursor:

cursor my_curr is
Select col1, ...
from table1
where ...
for update of columns_2b_updated nowait;


For your update:

update table1
set columns_2b_updated = ...
where current of my_curr;


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top