请问这是利用的oracle的存储过程技术还是什么,因为我原来只会比较低的技术,也就是crud,突然看到这个有点晕。
select case
when t.provider_id is null then
'0'
else
(select case
when t1.chs_name is null then
t1.eng_name
else
t1.chs_name
end
from bm_t_provider t1
where t1.provider_id = t.provider_id)
end
from sm_t_user t
where t.user_id =43
也可以写为decode(e1,s1,....)
相当于if else