我的sqlite表是这样的
content_id content_no content_1 content_2
1 1:1 NULL 1:1 text
2 1:2 NULL 1:2 text
现在我想将内容插入“content_1”。只有 content_no 与 content_1 的 1:1 匹配。
我的插入代码是这样的:
cmd.CommandText = "insert into Content (content_1) values (?)";
SQLiteParameter Field3 = cmd.CreateParameter();
cmd.Parameters.Add(Field3);
Field3.Value = node.InnerText;
但它正在插入这样的内容
content_id content_no content_1 content_2
1 1:1 NULL 1:1 text
2 1:2 NULL 1:2 text
1:1 text
1:2 text
我不想这样。最后两行应该移到前两行