当前位置:Gxlcms > 数据库问题 > oracle exists和 not exists 的用法

oracle exists和 not exists 的用法

时间:2021-07-01 10:21:17 帮助过:3人阅读



select * from a where exists(select 1 from b where b.id = a.id)

或者:
现在要取 a 中的数据,其中id在b中 不存在:

select * from a where not exists(select 1 from b where a.id = b.id)

oracle exists和 not exists 的用法

标签:rom   ora   select   用法   size   col   sts   style   存在   

人气教程排行