The fact that there's no "official CSV standard" doesn't mean that there isn't
"common practice" that SQLite should support (but I can't say that I know that
it does; it should be easy to change if it doesn't).
The "common practice" is to double each embedded double-quote.
"abc","the char in parens ("") is doublequote","def"
-----Original Message-----
Date: Tue, 18 Jun 2013 22:02:31 +0200
From: Clemens Ladisch <[email protected]>
To: [email protected]
Subject: Re: [sqlite] escape quote for csv import
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Roland Hughes wrote:
> How does one escape a in a CSV file so it will correctly import?
The sqlite3 tool allows to configure the separator, but the quote
character for delimiting fields is hardcoded.
(There is no official CSV standard, and there is no widely supported
escaping mechanism.)
> I can only massage the CSV
Convert it into properly formatted SQL INSERT statements.
Regards,
Clemens
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users