输入banner图图片脚本导航/分类

oracle exists和 not exists 的用法



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   存在