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
 

 

Need to update the date value alone

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
mutvijayan

New User


Joined: 22 Nov 2010
Posts: 3
Location: Chennai

PostPosted: Thu Nov 25, 2010 1:06 pm    Post subject: Need to update the date value alone
Reply with quote

Hi All!

I have one field with the TIMESTAMP datatype in a table. But, i need to update the date value alone. Can anyone tell me how to do it?

Regards,
M.Vijayan
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu Nov 25, 2010 1:48 pm    Post subject:
Reply with quote

UPDATE table
SET TIMESTAMP_COLUMN = TIMESTAMP_COLUMN + 4 DAYS

or - 2 years
or + 6 hours
or
or
or
or
or
Back to top
View user's profile Send private message
mutvijayan

New User


Joined: 22 Nov 2010
Posts: 3
Location: Chennai

PostPosted: Thu Nov 25, 2010 2:20 pm    Post subject:
Reply with quote

Thank you very much.. It's working.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 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 LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm


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