跟平常JAVA开发一样写呀
select * from user where id=1
Integer类的参数不能放到selectionArgs里。参照下面的写法, id的值直接附在selection里
public void query(long id, String name) {
db.query("table", // table name
null, // columns
"id=" +id + " AND name=?", // selection
new String[] {name}, //selectionArgs
//...... 更多参数省略
);
}