oracle exists 简单用法

select f.*
from fnd_companies_vl f --公司
where exists(select * 
              from 
              sys_user s--用户
              where     --取外层公司表的条件和内层用户表比较,判读外层的要查的东西,是要再内层成立的基础上才有数据。
             f.business_group=s.business_group)

not exists 相反

发布了31 篇原创文章 · 获赞 1 · 访问量 1829

猜你喜欢

转载自blog.csdn.net/liangdingguo/article/details/104968501
今日推荐