Let me just start of saying that this is what I'm working with....
"NOS","20154","MOVIE POSTER","REPRINT","KING KONG",0.00,0.00,27.00,40.00,29.50,"king kong;movie","1"
"NOS","25001","MOVIE POSTER","CLASSIC","ADAMS RIB",0.00,0.00,26.00,35.00,29.50,"adams rib;spencer tracy;katherine hepburn;movir","1"
"NOS","25002","MOVIE POSTER","CLASSIC","AFRICAN QUEEN",0.00,0.00,26.00,35.00,29.50,"african queen;movie;humphrey bogart;katherinte hepburn","1"
What I have is a 96,000 line CSV file that I need to get into a mySQL database. However, in addition to the fields included in the file I also need to add a few additional fields such as a an item number. (This database contains a vendor code and their item number, but we want a generic item number also).
One approach that I have considered is using "LOAD DATA", but I ran into a couple problems with that... I wasn't able to get it to work and if I did get it to work, I was afraid I would be unable to add the additional fields.
Is "LOAD DATA" the way to go? If so... can someone give me some advice on getting this to work right. If not, what should I do?
"NOS","20154","MOVIE POSTER","REPRINT","KING KONG",0.00,0.00,27.00,40.00,29.50,"king kong;movie","1"
"NOS","25001","MOVIE POSTER","CLASSIC","ADAMS RIB",0.00,0.00,26.00,35.00,29.50,"adams rib;spencer tracy;katherine hepburn;movir","1"
"NOS","25002","MOVIE POSTER","CLASSIC","AFRICAN QUEEN",0.00,0.00,26.00,35.00,29.50,"african queen;movie;humphrey bogart;katherinte hepburn","1"
What I have is a 96,000 line CSV file that I need to get into a mySQL database. However, in addition to the fields included in the file I also need to add a few additional fields such as a an item number. (This database contains a vendor code and their item number, but we want a generic item number also).
One approach that I have considered is using "LOAD DATA", but I ran into a couple problems with that... I wasn't able to get it to work and if I did get it to work, I was afraid I would be unable to add the additional fields.
Is "LOAD DATA" the way to go? If so... can someone give me some advice on getting this to work right. If not, what should I do?