Skip to content Skip to sidebar Skip to footer

Rowid In Sqlite3 And Android

I perform an insert on a database and I want to know what the rowid is for that insert. Does this accomplish the task: Uri uri = ContentResolver.insert(url,values); //Make inser

Solution 1:

To parse the URI after an insert and get the id you should use ContentUris.parseId(uri).


Post a Comment for "Rowid In Sqlite3 And Android"