lundi 2 novembre 2015

get Primary key rather than rowID while inserting in sqlite or get primary key by its rowID

Is there a smart way of getting the primary key that is auto incremented rather than rowID while inserting in the database, basically i don't want to write a new query to get the primary key of the last entry, is there any way to get the primary key using its rowID.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire