日期:2014-05-17 浏览次数:20907 次
update a set zt='1' where exists(select 1 from A,B where A.bm=B.bm and A.zt='0' and B.cd='1')
------解决方案--------------------
--修改下 update a set zt='1' where exists(select 1 from B where A.bm=B.bm and A.zt='0' and B.cd='1')
------解决方案--------------------
update A set zt = '1' where A.zt='0' and exists (select * from B where A.bm=B.bm and B.cd='1')
------解决方案--------------------
打慢了点……
------解决方案--------------------
update a set zt='1' where exists(select 1 from B where A.bm=B.bm and A.zt='0' and B.cd='1')