Cursor cursor = db.rawQuery(sql, args);
while (cursor.moveToNext()) {
int id = cursor.getInt(cursor.getColumnIndex("id"));
String name = cursor.getString(cursor.getColumnIndex("name"));
}
SQLite cursor遍历
最新推荐文章于 2023-04-22 18:48:52 发布