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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tricky Import Problem

Status
Not open for further replies.

Ksquared

Technical User
Mar 24, 2002
12
AU
I have column data whicn im trying to get in to data for each record.
The data is layed out like....
LOCATION, STOCKPILE, PAD, X1, X2, X3, X4
abc 123 x 2 1 0

Im trying to get the data into the database like this....

abc,123,x,2
abc,123,x,1
abc,123,x,0

...so for each of the X values i need to write the preceding info into the DB....

Any ideas will be greatly appreciated.

Cheers.
K2

 
Ksquared

If the file always contains 7 columns, the fastest approach would be to load the file 3 times...

1st Pass - Columns 1,2,3,4,5
2nd Pass - Columns 1,2,3,4,6
3rd Pass - Columns 1,2,3,4,7

Hope that helps



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top