MySQL Forums
Forum List  »  Newbie

Problems with LOAD DATA
Posted by: Michael Staley
Date: June 26, 2014 02:43PM

I load data from CSV files using the LOAD DATA utility. Where there is an embedded comma in text data, the field is enclosed with double quotes, and I am using the clause "OPTIONALLY ENCLOSED BY '"'. Unfortunately, the double quotes are ignored, and the comma is taken to indicate a new field.

Has anyone else had this problem, and if so is there a work-around?

Any help greatly appreciated. In the meantime, I'm have written an Applescript application to take the CSV file and produce from it SQL INSERT statements, but I'd still like to find a solution to the LOAD DATA problem if possible.

Options: ReplyQuote


Subject
Written By
Posted
Problems with LOAD DATA
June 26, 2014 02:43PM
July 07, 2014 08:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.