eclipse - How do you import a spreadsheet into DB2? -
i have csv file, apply txt, data, or xls file. (xlsx) have exported data 1 source , want import data db2 table.
i first tried data tools plugin (dtp) in eclipse helios (3.6.3) right clicking on table , selecting: data > load...
but got error:
loading "myschema"."mytable"... com.ibm.db2.jcc.am.sqlexception: [jcc][10103][10941][4.14.113] method executequery cannot used update. errorcode=-4476, sqlstate=null data loading failed.
then tried eclipse sql explorer on eclipse juno, does not support data import.
how past error can import?
you can import csv file directly db2 via import or load command, xml or blob part of data import.
the procedure import depends on structure of file going import. should modify default behaviour of these commands; db2 has many option adapt command input file.
for more information about:
- the import command: http://publib.boulder.ibm.com/infocenter/db2luw/v10r1/topic/com.ibm.db2.luw.admin.cmd.doc/doc/r0008304.html
- the load command http://publib.boulder.ibm.com/infocenter/db2luw/v10r1/topic/com.ibm.db2.luw.admin.cmd.doc/doc/r0008305.html
i think question more oriented to: how use eclipse import data in db2 csv file. however, said, can directly via db2.
if going import file next one, thing need have access db2 client.
data.txt
1,"andres","2013-05-18" 2,"tom","2011-04-16" 3,"jessica","2002-03-09" you import with
db2 import data.txt of del insert test
Comments
Post a Comment