Possible Duplicate:
Get updated rows count from SQLite in Android using a raw query?
I want to get the number of rows affected by a sqlite insert
command. My query looks something link this:
String sql = "INSERT OR REPLACE INTO "+TABLE_USER+" (`...
")" ;
c = myDataBase.rawQuery(sql, null);
My research was not successful. I found something like a count()
command for sql but I didn't get it to work. How do I get the number of modified rows of a sql INSERT
command?