Home> Database> SQL> body text

How to use exists in oracle

angryTom
Release: 2020-03-06 17:56:03
Original
14090 people have browsed it

How to use exists in oracle

Usage of exists in oracle

1. exists is followed by a subquery

How to use exists in oracle

2. The following two tables are used as examples to demonstrate that the id in table a is associated with the aid in table b

Recommended learning:SQL tutorial

How to use exists in oracle

3. The function of exists is to check whether the result of the subquery is true. If the subquery is true, the outer SQL statement is executed. exists does not return data and only returns true or false

How to use exists in oracle

##4. If it returns false, the external SQL statement will not be executed as shown below

How to use exists in oracle

5. Its usage is somewhat similar to in, but sometimes the efficiency is different when the amount of data is relatively large, but the efficiency is the same when the amount of data is relatively small.

How to use exists in oracle

For more oracle related tutorials, please pay attention to

PHP Chinese website!

The above is the detailed content of How to use exists in oracle. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!