首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > PowerDesigner >

oracle update两张表联系关系更新

2012-07-18 
oracle update两张表关联更新更新字段 在mysql 中用习惯了 ?update tb1 a,tb2 b set a.nameb.name where

oracle update两张表关联更新

更新字段 在mysql 中用习惯了

?

update tb1 a,tb2 b set a.name=b.name where a.id=b.id and a.age=10

?

放到oracle里缺失set关键字

?

改成

update tb1 a set a.name=(select name from tb2 b where a.id=b.id)

?

where a.age=10

热点排行