IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Update the date column with Current date


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Tue Oct 28, 2008 3:04 am
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts How to load to DB2 with column level ... DB2 6
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top