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
 
Update the date column with Current date

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

New User


Joined: 05 Jun 2005
Posts: 13

PostPosted: Mon Oct 27, 2008 8:48 pm    Post subject: Update the date column with Current date
Reply with quote

Hi,

Can anybody tell me what is the syntax for updating the date column with Current Date in DB2?
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Oct 28, 2008 3:04 am    Post subject:
Reply with quote

Hello,

Which date column? How is this column defined in your system?

You have most likely received no replies because of the way the question was posted.
Back to top
View user's profile Send private message
callkris_cit

New User


Joined: 22 Apr 2006
Posts: 44

PostPosted: Fri Oct 31, 2008 11:38 pm    Post subject: Reply to: Update the date column with Current date
Reply with quote

Sample Date Update:

If your DB2 field column have the type as DATE then,

UPDATE WH_DATE = CURRENT_DATE
FROM TABLE1
Back to top
View user's profile Send private message
callkris_cit

New User


Joined: 22 Apr 2006
Posts: 44

PostPosted: Fri Oct 31, 2008 11:40 pm    Post subject: Reply to: Update the date column with Current date
Reply with quote

Sorry. Ignore my previous reply


UPDATE TABLE1
SET WH_DATE = CURRENT_DATE
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 Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm

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