Advertisement

04.24.2008 at 09:17AM PDT, ID: 23350833 | Points: 500
[x]
Attachment Details

Importing CSV Files

Asked by keevin in Cold Fusion Markup Language, Web Languages/Standards, Databases Miscellaneous

Tags:

HI There,

I'm working on a little application where a user can import data from a CSV and insert that data to the database. This bits work fine provided that the csv column are in the define order eg Firstname Lastname Age Country. But if someone import a CSV where the column is Country, Lastname ,Firstname Age. The data will be wrongly imported on the wrong column. I was wondering if there a way where we can assign the column of the database to match a specific column of the csv file.
E.g
once the CVS imported, but not inserted in the database so far. we have drop down which display the column name from the database on the left and on the right the column name from the csv file. There we can match which data should go in which field.

Hope this is clear, else please do not hesitate to get back to me.Start Free Trial
[+][-]04.25.2008 at 06:44AM PDT, ID: 21439472

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 08:52AM PDT, ID: 21574990

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 08:59AM PDT, ID: 21575057

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628