Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 bind plan?

0 Answers  


What happens to a cursor after a commit?

3 Answers  


How can you find out the # of rows updated after an update statement?

0 Answers  


What action db2 takes when a program aborts in the middle of a transaction?

0 Answers  


What is query for your birthday date should be in hours,minute and seconds format?

1 Answers   Fidelity,






Explain about dbrm.

0 Answers  


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

0 Answers  


What is alias in db2?

0 Answers  


What is the syntax for creating a table in the db2 database?

0 Answers  


Suppose I have a program which uses a dynamic SQL and it has been performing well till now. Off late, I find that the performance has deteriorated. What happened?

1 Answers  


What are the four lockable units for DB2?

1 Answers  


What is db2?

0 Answers  


Categories