sql="select * from mytable where frq+0>?+0 and frq+0<?+0";
args=new String[]{500,1000};
Cursor cursor=db.rawQuery(sql, args);
这篇博客探讨了如何使用SQL进行数据筛选,展示了一个示例查询,该查询从mytable中选取frq值在500到1000之间的记录。通过参数化方式设置查询条件,使用`rawQuery`方法执行查询。
sql="select * from mytable where frq+0>?+0 and frq+0<?+0";
args=new String[]{500,1000};
Cursor cursor=db.rawQuery(sql, args);
573

被折叠的 条评论
为什么被折叠?