首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

sql语句 怎么在oracle中实现。

2012-04-01 
sql语句 如何在oracle中实现。。updateaseta.hth 33 ,a.htzh00 ,a.rkrq 20070607 ,a.lrrq 20070620froma

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)

热点排行