Jun 8, 2004 #1 ann26ar Technical User Jun 8, 2004 2 GB I'm looking for a solution to export data from Excel or Lotus 123 to a DB2 table. Does someone know how do this? Thank you in advance.
I'm looking for a solution to export data from Excel or Lotus 123 to a DB2 table. Does someone know how do this? Thank you in advance.
Jun 8, 2004 #2 BrianTyler IS-IT--Management Jan 29, 2003 232 GB The simplest approach is to export the data to a comma-seperated file and then use eithr LOAD or IMPORT to populate DB2 Upvote 0 Downvote
The simplest approach is to export the data to a comma-seperated file and then use eithr LOAD or IMPORT to populate DB2
Jun 9, 2004 Thread starter #3 ann26ar Technical User Jun 8, 2004 2 GB Thank you Brian Could you please write a sample procedure with LOAD or IMPORT? Thank you in advance. Upvote 0 Downvote
Jun 9, 2004 #4 BrianTyler IS-IT--Management Jan 29, 2003 232 GB IMPORT FROM filename OF DEL INSERT INTO tablename ( col1, col2, col3, col4, col5); COMMIT; This 'script' can be run from the DB2 command line (or a terminal window etc). The keyword DEL means a comma seperated file. Upvote 0 Downvote
IMPORT FROM filename OF DEL INSERT INTO tablename ( col1, col2, col3, col4, col5); COMMIT; This 'script' can be run from the DB2 command line (or a terminal window etc). The keyword DEL means a comma seperated file.