Suppose if I need to update a column, how you do that using
cursor?

Answer Posted / bobby

continuation of previous answer,

after cursor declaration, open the cursor and fetch the cursor. When the condition for update is satisified isue EXEC SQL UPDATE CURRENT OF.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is precompiler in db2?

587


How do I copy a table in db2?

575


How is deadlock resolved?

650


Mention the different locking levels that are available in db2.

645


What is phantom read in db2?

640






Which components manage deadlocks in db2?

615


What is cursor in dbms?

594


Can there be more than one cursor open for any program?

662


Define data page.

634


Which isolation level provides maximum concurrency?

666


Is it possible to create an Instance in DB2 using DB2 Control Center ?

631


What is a Foreign Key?

659


Define declaration generator (dclgen).

667


How do you simulate the explain of an embedded sql statement in spufi/qmf?

637


What is db2 bind?

641