UPDATE **name_table** AS import
INNER JOIN a_citta AS c ON (c.idcontatto=@idcontatto AND import.cittanascita=c.codice)
SET import.id_cittanascita=c.id
WHERE import.is_valid_cf=1 AND import.cittanascita IS NOT NULL AND c.codice IS NOT NULL AND c.codice!=''
;
UPDATE **name_table** AS import
INNER JOIN a_citta AS c ON (c.idcontatto=@idcontatto AND import.cittaresidenza=c.codice)
SET import.id_cittaresidenza=c.id
WHERE import.cittaresidenza IS NOT NULL AND c.codice IS NOT NULL AND c.codice!=''
