what is the syntax for FOR UPDATE CLAUSE in cursor
declaration and how can u update using cursor? is it
possible to update multiple rows at a time.

Answer Posted / vaneesh khurana

If one wants to update multiple rows simply write a querry,
instead of using cursor.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between drop table and delete table?

554


When the like statement is used?

640


I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.

1651


What does db2 mean?

588


Is ibm db2 open source?

586






What does reorg do in db2?

578


While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?

1819


Can you tell me how can you find out the # of rows updated after an update statement?

612


What is a trigger in the db2 database?

596


Explain the function done by data manager?

857


DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?

2278


What is a Foreign Key?

657


What is the role of data manager in the db2 database?

649


How many types of page locks can be held in db2?

593


What is rebind in db2?

576