当前位置: 代码迷 >> Oracle开发 >> sql语句 怎么在oracle中实现。
  详细解决方案

sql语句 怎么在oracle中实现。

热度:61   发布时间:2016-04-24 07:52:00.0
sql语句 如何在oracle中实现。。
update     a   set   a.hth= '33 ',a.htzh=   '00 ',a.rkrq   = '20070607 ',a.lrrq= '20070620 '  
from     a      
join     b      
on   a.id=b.id

------解决方案--------------------
这样呢

update a set a.hth= '33 ',a.htzh= '00 ',a.rkrq = '20070607 ',a.lrrq= '20070620 '
where (select count(*) from a,b where a.id=b.id)> 0
------解决方案--------------------
update a set a.hth= '33 ',a.htzh= '00 ',a.rkrq = '20070607 ',a.lrrq= '20070620 '
where a.id in (select id from b)
  相关解决方案