Hi Dude,this is Ram.could any one tell me aboue CURRENT OF
clause in DB2.
Thanks in advance.......

Answers were Sorted based on User's Feedback



Hi Dude,this is Ram.could any one tell me aboue CURRENT OF clause in DB2. Thanks in advance.........

Answer / narayana reddy

current of is using in cursors.
whenever we want to update and delete table data after retrived

Is This Answer Correct ?    4 Yes 0 No

Hi Dude,this is Ram.could any one tell me aboue CURRENT OF clause in DB2. Thanks in advance.........

Answer / kamlesh

Current of is used with cursors whenever v go for update in conjunction with for update of .
1.for update of in declare stmt
2.where current of in update query after fetching

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More DB2 Interview Questions

What are db2 tables?

0 Answers  


How is the SUBSTR keyword used in sql?

1 Answers  


What are common abends

1 Answers   SPIC, Virtusa,


How to define the data items to receive the fetch items for the SQL?

2 Answers  


I have 3 cursors declared. Cursor1 retieves some data. Based on this curso2 will also fetches some data. In cursor3 (using for some updation) I'm using the data retrieved by the above 2 cursor. My question is, while working with cursor3, periodically if I give commit, will all the three crsors will be closed or only cursor3 will be closed?

4 Answers  






Are view updateable?

0 Answers  


What is the use of reorg in db2?

0 Answers  


In db2, how do you insert multiple rows in 1 query using a.) Cursors, b.) Normal query?? Give syntax for both.

5 Answers   CTS,


How can you count the number of rows from a table tab?

0 Answers  


What is sqlcode -811?

7 Answers   Accenture, CTS, TCS,


why we go for SPUFI for creating tables or for sql queries?

4 Answers  


What will happen, while trying to close the closed cursor.

1 Answers  


Categories