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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Row by row processing

Status
Not open for further replies.

badukist

Programmer
Jun 26, 2003
146
RO
It possible something like this in stored procedures?
DECLARE CURSOR -> OPEN -> FETCH doesn't work

I've read that UPDATE CURRENT OF CURSOR ... works in stored procedures, but how to implement this?


 
Found it!

FOR SELECT ... FROM {table} INTO ... AS CURSOR {cursor}

{calculations}
UPDATE {table} SET ... WHERE CURRENT OF {cursor}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top