LOAD DATA from CSV file where doublequote was used as the escape character
问题 I have a bunch of CSV data that I need to load into a MySQL database. Well, CSV-ish, perhaps. ( edit : actually, it looks like the stuff described in RFC 4180) Each row is a list of comma-separated doublequoted strings. To escape any doublequotes that appear within a column value, double doublequotes are used. Backslashes are allowed to represent themselves. For example, the line: "", "\wave\", ""hello,"" said the vicar", "what are ""scare-quotes"" good for?", "I'm reading ""Bossypants""" if