update tabelle1 tab1 set tab1.wertx = (select tab2.werty from tabelle2 tab2 where tab2.tab1_id = tab1.id)