mercredi 1 avril 2015

turning SQLite outcome to integer - Android

I'm working on a project and in need to use new ID's added to my database as numbers, How do I turn this:



String query = "SELECT * FROM " + playlistsDBName + " WHERE ID = LAST_INSERT_ROWID";


To an integer (or some other number type) that I can use in my Android code?


Aucun commentaire:

Enregistrer un commentaire