Closed dongri727 closed 1 year ago
Have you tried?
result.lastInsertID
Sorry for long answer. Have a hard times now. Yes you can use https://pub.dev/documentation/mysql_client/latest/mysql_client/IResultSet/lastInsertID.html
thank you both for your help, it works as
var lastInsertedId = result.lastInsertID;
print(lastInsertedId);
if it became BigInt someday, I'll try the second recommend
Hello, thank you for mysql_client How can I get the last inserted ID with mysql_client ?