我有一个这样定义的 SQLite 表:
CREATE TABLE Points(value INTEGER, player INTEGER, match INTEGER)
在执行过程中,我可能有几个相同的列,我想要一个只删除一个的调用,而不是全部删除,也不是只保留一个。是否有任何 SQL 调用可以做到这一点?
一个更清楚地解释自己的例子:
value player match
1 2 3
1 3 3
1 2 3
2 2 3
1 2 3
1 2 3
1 3 3
db.delete("Points", "value = 1, player = 2, match = 3", null); //pseudo-code for the deletion
db.delete("Points", "value = 1, player = 3, match = 3", null);
value player match
1 2 3
2 2 3
1 2 3
1 2 3
1 3 3
我认为 db.delete("Points", "value = 1, player = 3, match = 3", null); 将删除与 where 子句匹配的所有列,对吗?