When updating a table in mysql, for example:
user table
user_id | user_name 1 John 2 Joseph 3 Juan
If I run a query
UPDATE `user` SET user_name = 'John' WHERE user_id = 1
Will MYSQL repeat the same value or ignore it since it has the same content?
This is a Q & A question. The question I have done since Qaru encourages it, I think it will be useful in the future for the same programmers with the same question.
source share