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
 
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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm

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