How to count the number of rows in an SQLite database table? I have a table called my_table and it has columns name info and number.
SQLite
my_table
name
info
number
You may use rawQuery count(*) which returns number of rows in a table.
count(*)
cursor=db.rawQuery("Select count(*) from my_table;", null);
2.1m questions
2.1m answers
60 comments
57.0k users