मुझे पूरा यकीन नहीं है कि आप क्या करना चाहते हैं। लेकिन, आप कोई भी select डाल सकते हैं insert . . . select स्टेटमेंट और अभी भी on duplicate key update use का उपयोग करें . उदाहरण के लिए:
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;