Nie wiem dokładnie, co chcesz zrobić. Ale możesz umieścić dowolny select instrukcja w insert . . . select oświadczenie i nadal używaj on duplicate key update . Na przykład:
insert into Table1(field1, field2)
select 1, 2
from table1 t1 join
table2 t2
on t2.id = t1.field_id
where t2.addr = '123456'
on duplicate key update field1 = 1, field2 = 2;