• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Check number of rows affected by SQLite query

Greum

Well-Known Member
Jun 2, 2019
150
50
Umbria, Italy
Is there a way to check the number of rows that a SQLite query has affected? For instance on delete I want to be able to report that No, 1, 2 etc records were deleted.

I've looked at try ... catch ... but that just tells me the query ran, not how many records (if any) were deleted.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones