Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Difference between current of and update of in DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Difference between current of and update of in DB2
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    Post subject: Re: DB2 Q
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    Post subject: Re: Difference between current of and update of in DB2
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need Guidance regarding UPDATE query Poha Eater DB2 3 Mon Feb 12, 2018 11:35 pm
No new posts Conversion of DLI update Jobs as BMP ... Gopinath Shanmugam IMS DB/DC 3 Wed Dec 20, 2017 12:02 pm
No new posts ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Comparision with current time arunsoods DFSORT/ICETOOL 5 Thu Nov 09, 2017 10:37 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us