If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Issue with loading a table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-26-10, 08:59
mandar_57 mandar_57 is offline
Registered User
 
Join Date: Aug 2010
Posts: 3
Red face Issue with loading a table

Hi,

I am trying to load a table from a flat file. Table has create timestamp and update timestamp columns which I want to populate with current timestamp.

How do I need to create a input flat file. I dont want to give timestamp in input. It should be automatically populated while loading table.


Please suggest.



Thanks & Regards
Mandar Panse
Reply With Quote
  #2 (permalink)  
Old 08-26-10, 10:38
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Define the two timestamp columns with the default value of current_timestamp, then omit these columns from the load command. They will be populated with the default value.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On