Sqlite 字符串列表的Update语句

Sqlite 字符串列表的Update语句,sqlite,sql-update,Sqlite,Sql Update,我使用的是sqlite3,我的表有一个文本字段,它实际上有一个字符串列表 例如,一个示例select(select*fromtable,其中id=1)将返回 1|foo@bar.com|21-03-2015|["foo", "bar", "foobar"] 不过,我无法理解更新列表的sqlite语句是如何运行的。我试过了 update table set list="["foo", "bar"] where id=1; update table set list=["foo", "bar"]

我使用的是
sqlite3
,我的表有一个文本字段,它实际上有一个字符串列表

例如,一个示例select(
select*fromtable,其中id=1
)将返回

1|foo@bar.com|21-03-2015|["foo", "bar", "foobar"]
不过,我无法理解更新列表的sqlite语句是如何运行的。我试过了

update table set list="["foo", "bar"] where id=1;
update table set list=["foo", "bar"] where id=1;
update table set list="\["foo", "bar"\]" where id=1;
update table set list=(value) where id=1 VALUES (["foo", "bar"])

这是您需要的声明:

UPDATE table SET list = '[\"foo\", \"bar\"]' WHERE id = 1

您实际使用的编程语言是什么?@CL。我对Web本身使用Python,但现在我只想使用
sqlite3
CLI解释器直接编辑它。实际上,您甚至不需要再转义