How do you check if the table is empty in SQLite?

How do you check if the table is empty in SQLite?
Answer
moveToFirst()){ flag = false; } else { flag = true; } cursor. close(); sqLiteDatabase. close(); return flag;
moveToFirst() check table and return true , if table is empty.
 

Tìm kiếm

Back
Top