I'm trying to migrate an existing database to another. The problem is as follows:
I have 2 tables :
1.) hhhhhhhhyhhjhjhhhhhh, rows are :
relatie_id,
tempvar
2.) op_clienten_communicatie, rows are :
Nummer,
Volledige naam,
Volledig adres,
Postcode,
Plaats,
Communicatiemiddel,
Nummer/Adres,
tempvar
When i execute the query ;
UPDATE op_clienten_communicatie, hhhhhhhhyhhjhjhhhhhh
SET op_clienten_communicatie.Nummer = hhhhhhhhyhhjhjhhhhhh.relatie_id
WHERE op_clienten_communicatie.tempvar = hhhhhhhhyhhjhjhhhhhh.tempvar
I only get ALL the op_clienten_communicatie.Nummer
fields updated with the same (first entry) from hhhhhhhhyhhjhjhhhhhh.relatie_id
The result I'm looking for is that all the rows in op_clienten_communicatie.Nummer
should be updated with the existing values from hhhhhhhhyhhjhjhhhhhh.relatie_id
.