For strings where the names are the same, update is non-op.
You are not saving any work by trying to filter out rows where they are the same, since the data still needs to be compared by reference. Therefore, I do not see any benefit to the subquery.
Therefore, the query can be simplified:
update mysqlserver...subscribers set Firstname = Voornaam, Middlename = Tussenvoegsel, Surname = Achternaam, email = e-mail from mysqlserver...subscribers as b join tblkandidaat on b.kandidaatid = tblkandidaat.kandidaatid; where b.list = 1;
Removing the subquery may cause the lock issue to disappear. MySQL has some problems combining select and update in the same table in a given query.
Bill karwin
source share