Quote:
The stored procedure, which I am working on, supposed to fetch data
from one table, update data and insert updated data back to that
|
table. <<
Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, datatypes, etc. in
your schema are. You ask people to help you for free, but you don't
give us any specifications we can use, no sample data, and no DDL.
Also it helps to see code if you have to debug it.
Why aren't you just using an UPDATE statement instead of a cursor with
a FETCH?