update tableA a
set aaa = '1'
from tableA a,tableB b
where a.eee = b.eee