MySQL Forums
Forum List  »  Connector/Node.js

SqlResult does not have getLastInsertId()
Posted by: Seongjoo Lee
Date: January 21, 2023 07:25PM

API Version: @mysql/xdevapi 8.0.32

User guide shows that SqlResult has getLastInserId()

https://dev.mysql.com/doc/x-devapi-userguide/en/result-set-classes.html

But it does not.

For now, it seems that executing sql query as string is required to get the last insert id.

Options: ReplyQuote


Subject
Written By
Posted
SqlResult does not have getLastInsertId()
January 21, 2023 07:25PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.