Primary Key

You might say

AI said to update this record by id. Where does that id come from?

The field in a table used to uniquely identify each rowIf two rows in a users table share an email, an update by email matches both; an update limited to primary key id = 7 identifies the target row. Check the matching count before writing and read the table again to confirm the other row stayed unchanged. A primary key can be one column or a group, and its value is unique and non-null.
Know first
Primary KeyID
Further reading