adi501
07-18-2008, 09:26 PM
Hello everybody.
I have a problem while converting .csv formatted file to Mysql database.
I have used the following statement in order to convert
LOAD DATA LOCAL INFILE 'D:/US-zip-codes.csv' IGNORE INTO TABLE oz.zip_geo_info FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY "" LINES TERMINATED BY '\r\n' (field1,field2,..........................,field19)
In my table FIELD1 is the primary key.
The above statement worked and it has put the values from the .csv to mysql table. But it has excluded all the rows which have duplicate values for the primiray key.
I want all the duplicate columns. How can i get all the values?
Thanks in advance.
I have a problem while converting .csv formatted file to Mysql database.
I have used the following statement in order to convert
LOAD DATA LOCAL INFILE 'D:/US-zip-codes.csv' IGNORE INTO TABLE oz.zip_geo_info FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY "" LINES TERMINATED BY '\r\n' (field1,field2,..........................,field19)
In my table FIELD1 is the primary key.
The above statement worked and it has put the values from the .csv to mysql table. But it has excluded all the rows which have duplicate values for the primiray key.
I want all the duplicate columns. How can i get all the values?
Thanks in advance.