Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
CursorAdapter with MySql
Versions des environnements
I create an ODBC connection with a MySql Data Base, and use the class CursorAdapter too.
But i have a problem with an field ID(autoinc). When i execute the TableUpdate i have to use the CursorRefresh to get the new ID genereted. But with the CursorRefresh i lost the reference to the new record, it´s seems the comand moves the pointer to the begin of the file. How can i proced in this case, cause i need to get the new ID for the new record. There is another way to get the new ID without using CursorRefresh?
Thanks
Ricardo Possas
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement