import csv file into mysql using LOAD DATA INFILE -
load data infile 'returns_inprogress_06-feb-2016-11-35.csv' ignore table fkreturn fields terminated ',' enclosed '"' escaped '"' lines terminated '\n' (`fsn`,`product`,`order id`,`order item id`,`sku code`,`return id`,`return created on`,`return action`,`return type`,`is fa`,`new order item id`,`sub reason`,`comments`,`shipment status`,`tracking id`,`good quantity`,`bad quantity`,`total price`,`quantity`);
when executed gives error "#1290 - mysql server running --secure-file-priv option" cannot execute statement. using windows wamp, csv file in www folder. want ignore duplicates of primary key (return id) , upload others.should field marked unique also. or other easy way upload csv table ignoring duplicates
Comments
Post a Comment