您的位置:首页 > 数据库 > Oracle

oracle case where 复杂sql语句

2015-08-04 10:57 537 查看
update hr_user u set u.is_approve=(case
when u.curr_org_id in
(select t.org_id
from hr_organization t
start with t.org_id = 10001263
connect by prior org_id = t.org_id_parent) then
'N'
ELSE
'Y'
END);

update hr_user u set u.is_approve=(case
when u.curr_org_id in
(select t.org_id
from hr_organization t
start with t.org_id = 10001263
connect by prior org_id = t.org_id_parent) then
'N'
ELSE
'Y'
END) where u.EMP_NUM='066001';

oracle复杂sql语句   oracle动态交叉表,oracle存储过程分页

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: