我想写一个Query来从表中删除一行.我很困惑写这个陈述.写这篇文章我需要一些帮助.我在这里用简单的sql语句提供我的要求.
(伪代码)
delete from tablename where value =="string1" && value2 == "string2" && value3 == "string3";
我想用android db.delete(tablename,whereclause,whereargs);的Sqlite语法编写这个.
我很感谢你的帮助.
解决方法:
更好的方法是使用
String where = "value1 = ?"
+ " AND value2 = ?"
+ " AND value3 = ?";
String[] whereArgs = {string1,string2,string3};
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!