Oracle多表关联更新
update sdzy_operatlist1 a -- 使用别名
set (enddate,isred)=(select b.enddate,b.isred
from sdzy_operatlist b
where B.LOG_ID=A.Log_Id)
where exists (select 1
from sdzy_operatlist b
where B.LOG_ID=A.Log_Id
)
set (enddate,isred)=(select b.enddate,b.isred
from sdzy_operatlist b
where B.LOG_ID=A.Log_Id)
where exists (select 1
from sdzy_operatlist b
where B.LOG_ID=A.Log_Id
)