Concept Flow - INSERT and auto-generated keys
Start INSERT command
Check if key is auto-generated?
Yes→Database generates key
Insert row with generated key
Insert row with provided key
Return generated key
Commit row
Finish
When inserting a row, the database checks if the key is auto-generated. If yes, it creates the key, inserts the row, and returns the key.