Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us