I have a csv file which has been exported from one of our systems. I need to be able to write a script that can import this csv directly into two SQL tables. The first column of the csv file determines which table the data should go in.
i.e.
JREV, 1, lhr, 2, 5
JSTA, 2, gla, 3, 6
JSTA, 5, lhr, 5, 7
JREV, 2, sla, 8, 8
Once i have created the 2 tables, (one called JREV and another called JSTA), I need to be able to import/query the data directly from the CSV file into these two tables.
Is there a way to do this please?
Thanks