Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DB2/Excel

Status
Not open for further replies.

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.
 
The simplest approach is to export the data to a comma-seperated file and then use eithr LOAD or IMPORT to populate DB2
 
Thank you Brian
Could you please write a sample procedure with LOAD or IMPORT?
Thank you in advance.

 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top