oracle case when exists()
用法如下:
select case when exists(select 1 from t_test c where c.name = 'zhangsan'
and c.age = 23 ) then 1 else 0 end
from dual;
http://www.htsjk.com/oracle/22996.html
www.htsjk.Com
true
http://www.htsjk.com/oracle/22996.html
NewsArticle
oracle case when exists() 用法如下: select case when exists(select 1 from t_test c where c.name = zhangsan and c.age = 23 ) then 1 else 0 endfrom dual;...
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。