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 > Import .csv file with one column set as auto increment and one as current timestamp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-10-12, 08:07
prashantjangame prashantjangame is offline
Registered User
 
Join Date: Jan 2012
Posts: 2
Import .csv file with one column set as auto increment and one as current timestamp

Hi,

I want to import data from .csv file into db2 database where one column value is set to auto increment and one more column value set to current timestamp.
In this case is it required to mention these columns in .csv fiile. If yes what will be values of these. I tried with null values for these columns but is giving me following error message

SQL3120W The field value in row "1" and column "1" cannot be converted to an
INTEGER value, but the target column is not nullable. The row was not loaded.

Anybody has idea about importing in such scenario.
Reply With Quote
  #2 (permalink)  
Old 01-10-12, 08:13
prashantjangame prashantjangame is offline
Registered User
 
Join Date: Jan 2012
Posts: 2
I m using Control Center utility for Import
Reply With Quote
  #3 (permalink)  
Old 01-10-12, 08:48
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
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