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
                 )

相关文章: