I have scoured the documentation for Poco but could not find a way to retrieve the last inserted id for an INSERT INTO Table operation.
The Statement::execute documentation says that it returns the number of records affected (which could be greater than one for a bulk insert).
If it makes any difference I'm currently using SQLite but would like a generic solution that works across different database engines.
Aucun commentaire:
Enregistrer un commentaire