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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / sandy

EXEC SQL DECLARE X CURSOR FOR
SELECT * FROM ABC
FOR UPDATE OF <COLUMN> ==>If we know the column we would
like to update.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is a collection?

3 Answers  


What is the latest version of ibm db2?

0 Answers  


What is a synonym? How is it used?

2 Answers  


What is DB2 (IBM Database 2)?

3 Answers  


What is a Cartesian product?

2 Answers  






What if we fail to give values in columns declared as NOT NULL ?

3 Answers   Cap Gemini,


What is isolation level in db2?

0 Answers  


how can you save the query in QMF?IS IT POSSIBLE OR NOT.IF POSSIBLW HOW?

1 Answers   Hewitt,


Can we use select * statement in cobol program without giving field names ???

3 Answers   Zensar,


What is RUNSTATS?

3 Answers  


what is the use of commit ? and what is the syntax?

2 Answers   Deloitte,


How do you select a row using indexes in db2?

0 Answers  


Categories