How to get last inserted row ID? #707
-
Is LastInsertId supported - if not, how to get the last inserted row ID? |
Beta Was this translation helpful? Give feedback.
Answered by
vmihailenco
Nov 9, 2022
Replies: 1 comment 2 replies
-
The last inserted row ID should be automatically assigned on the model when it is inserted. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
LDMFD
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The last inserted row ID should be automatically assigned on the model when it is inserted.
LastInsertId
is supported too if the driver provides it.