sqlite的查询方式
两种查询的操作1.rawQuerySQLiteDatabase db = ....;
Cursor cursor = db.rawQuery(“select * from person”, null);
while (cursor.moveToNext()) {
int personid = cursor.getInt(0); //获取第一列的值,第一列的索引从0开始
String name = c
转载
2017-03-29 16:16:07 ·
1785 阅读 ·
0 评论