General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
CursorAdapter with MySql
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only