Oracle:Update....JoinOracle认证考试
文章作者 100test 发表时间 2009:04:30 03:57:47
来源 100Test.Com百考试题网
这个和 SqlServer的UPDATE .. FROM 语法相似
比如:
0update employee_bonus
set bonus = 0
from employee_bonus b
inner join employees e on b.employee_id = e.employee_id
where e.bonus_eligible = N
ORACLE里面需要这样才能完成上面的功能
0update ( 0select bonus
from employee_bonus b
inner join employees e on b.employee_id = e.employee_id
where e.bonus_eligible = N ) t
set t.bonus = 0
更多优质资料尽在百考试题论坛 百考试题在线题库