oracle中not exists 是什么意思
答案:3 悬赏:80
解决时间 2021-01-29 03:54
- 提问者网友:杀生予夺
- 2021-01-28 19:22
oracle中not exists 是什么意思
最佳答案
- 二级知识专家网友:夜余生
- 2021-01-28 20:46
Not exists的意思是不在此范围内,类似于NOT IN;
例如:
select * from a where not exists (select 1 from b where b.id=a.id)
意思是查询a表的内容,且a表的ID不在括号内查询的结果集范畴内。
例如:
select * from a where not exists (select 1 from b where b.id=a.id)
意思是查询a表的内容,且a表的ID不在括号内查询的结果集范畴内。
全部回答
- 1楼网友:像个废品
- 2021-01-28 23:07
not exists就是检测有没有符合条件的记录的意思。
一般放到where后面,检测子查询的结果。
一般放到where后面,检测子查询的结果。
- 2楼网友:底特律间谍
- 2021-01-28 21:43
exists 是Oracle sql中的一个函数.表示是否存在符合某种条件的记录.如
select * from A,B
where A.id=B.id
and exists (SELECt *
FROM A
WHERe A.type LIKE 'S%')
select * from A,B
where A.id=B.id
and exists (SELECt *
FROM A
WHERe A.type LIKE 'S%')
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯