IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Difference between current of and update of in DB2


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
spriya

New User


Joined: 06 Oct 2005
Posts: 42

PostPosted: Fri Feb 24, 2006 9:14 am
Reply with quote

hi
can any body tell wat is the difference between current of and update of
in db2
Back to top
View user's profile Send private message
narenndra_tallapireddy

New User


Joined: 12 Jul 2005
Posts: 5

PostPosted: Fri Feb 24, 2006 9:26 am
Reply with quote

hi,

we can use current of when we are deleting a single row using a cursor.
for update of is used only for updating only columns that u need to update.


i think this will clear your doubt.

corrections are always acceptable.

regards,
narendra
Back to top
View user's profile Send private message
sunnybunny

New User


Joined: 29 Nov 2005
Posts: 49

PostPosted: Tue Mar 14, 2006 10:39 am
Reply with quote

Hi Narendra,

By using CURRENT OF we can do both update and delete. CURRENT OF is used to update or delete current row. Whereas UPDATE OF is used to just lock the columns which we want to update.


Thanks,
Sunny.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts Changeman - how can we know the curr... Compuware & Other Tools 2
No new posts Fetch data from programs execute (dat... DB2 3
No new posts replace word 'MONTH' with current mon... SYNCSORT 11
No new posts Timestamp difference and its average ... DB2 11
Search our Forums:

Back to Top