MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Timestamp when you are loading a DB2 table

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
monaco
Beginner


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Fri Dec 17, 2004 9:45 am    Post subject: Timestamp when you are loading a DB2 table Reply with quote

Hi all,

i'd like to ask you a question:

i need to load a table and one of its column has a TIMESTAMP format. Is there a way when i load the table for filling in this column the current timestamp?

Kind regards.
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Fri Dec 17, 2004 10:06 am    Post subject: Reply with quote

monaco,

This link might be useful to u.
http://www.mvsforums.com/helpboards/viewtopic.php?t=675&highlight=current+insert

Thanks,
Phantom
Back to top
View user's profile Send private message
videlord
Beginner


Joined: 09 Dec 2004
Posts: 147
Topics: 19

PostPosted: Tue Jan 04, 2005 3:40 am    Post subject: Reply with quote

The link explain using SQL INSERT, but not for DB2 Utility.
If the Column define as With Default, it can be loaded with current timestamp
(ignore the field, or using DEFAULTIF)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group