我试图导入字段中有引号的数据集合。他们目前分开标签。sqlite3导入引号
从我能理解根据文档(http://www.sqlite.org/cvstrac/wiki?p=ImportingFiles),sqlite shell应该直接解释引号,我认为这意味着我应该没有问题。
我已经运行到这条线上的一个问题:
1193782372 Lips Like Sugar (12" Mix) Echo & the Bunnymen 80's/12": The Extended Collection a76d9b04-51d9-4672-801f-356ab36dbae7 ccd4879c-5e88-4385-b131-bf65296bf245 1abb270a-e791-407f-a989-ff3ad6f8401c
因为它是不明确的地方标签是的,我已经包括了他们在这下面一行。
1193782372\tLips Like Sugar (12" Mix)\tEcho & the Bunnymen\t80's/12": The Extended Collection\ta76d9b04-51d9-4672-801f-356ab36dbae7\tccd4879c-5e88-4385-b131-bf65296bf245\t1abb270a-e791-407f-a989-ff3ad6f8401c
我正在尝试执行以下操作,但出现错误。
sqlite> .separator \t
sqlite> .import ./file.txt table
Error: ./file.txt line n: expected 7 columns of data but found 5
它没有双引号,但引号很重要。我似乎也无法逃过\"
的报价。
如何正确导入我想要的数据?