Not. If in your example there is no record with id = 12 in the database, the query will return "no rows are affected." An update will never create a new record in MySQL.
EDIT: although the update will not create a new record, it may include the default values / automatic values set in your database schema (for example, the current timestamp).
Rodrigo Ferreira
source share