标签:
public int getCount() { SQLiteDatabase db = dbOpenHelper.getReadableDatabase(); Cursor cursor = db.rawQuery("select count(id) from table",null); cursor.moveToFirst(); Long count = cursor.getInt(0); cursor.close(); return count; }
标签:
原文地址:http://www.cnblogs.com/chenlong-50954265/p/4972215.html