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);
1.4m articles
1.4m replys
5 comments
57.0k users