AndrewDotto
Registered User.
- Local time
- Today, 13:12
- Joined
- Nov 24, 2011
- Messages
- 14
Hi Guys,
Here's the background.
I get a CSV mailed to me, it's monstrous. I have a DB that i import this CSV into, (after alot of manipulation), and then run my queries to get what i need.
I've got some code that will autoimport this CSV into a table and then i can use nested queries to clean the data up, but it's hard to auto append the data to the final table because the column headers i need are not the first fields of the CSV, when autoloaded into a table, it's always row 4.
So, what i'm wanting is to assign a row of data as the column headers for a query so i can then append the data into a final table for my querying without having to manually assign the columns each time.
a little help??
Here's the background.
I get a CSV mailed to me, it's monstrous. I have a DB that i import this CSV into, (after alot of manipulation), and then run my queries to get what i need.
I've got some code that will autoimport this CSV into a table and then i can use nested queries to clean the data up, but it's hard to auto append the data to the final table because the column headers i need are not the first fields of the CSV, when autoloaded into a table, it's always row 4.
So, what i'm wanting is to assign a row of data as the column headers for a query so i can then append the data into a final table for my querying without having to manually assign the columns each time.
a little help??