In sqlite, is it possible to query data that contains unescaped unmatched quotation marks?
For example, the separator is set to |.
starships|spacecr"aft|snoo"py|rhythm
Using insert is not the problem, that works fine. The problem is delimiting elements with .import. To illustrate my point, I created a file called test.dat with the contents:
starships|spacecr"aft|snoo"py|rhythm
Then execute the following:
sqlite> create table t (a,b,c,d);
sqlite> .separator '|'
sqlite> .import test.dat t
Error: test.dat line 1: expected 4 columns of data but found 3
Yes, that’s possible: