MySQL 8.4.3
Source Code Documentation
join_type.h
Go to the documentation of this file.
1#ifndef SQL_JOIN_TYPE_H
2#define SQL_JOIN_TYPE_H
3
4/* Copyright (c) 2020, 2024, Oracle and/or its affiliates.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License, version 2.0,
8 as published by the Free Software Foundation.
9
10 This program is designed to work with certain software (including
11 but not limited to OpenSSL) that is licensed under separate terms,
12 as designated in a particular file or component or in included license
13 documentation. The authors of MySQL hereby grant you an additional
14 permission to link the program and your derivative works with the
15 separately licensed software that they have either included with
16 the program or referenced in the documentation.
17
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License, version 2.0, for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
26
27// Used to describe what kind of join an iterator is executing.
28enum class JoinType {
29 INNER,
30 /// Left outer join.
31 OUTER,
32
33 /// Left antijoin, i.e.:
34 /// SELECT projection FROM left_releation WHERE NOT EXISTS
35 /// (SELECT 1 FROM right_releation WHERE predicate)
36 ANTI,
37
38 /// Left semijoin, i.e.:
39 /// SELECT projection FROM left_releation WHERE EXISTS
40 /// (SELECT 1 FROM right_releation WHERE predicate)
41 SEMI,
43};
44
45#endif // SQL_JOIN_TYPE_H
JoinType
Definition: join_type.h:28
@ OUTER
Left outer join.
@ ANTI
Left antijoin, i.e.
@ SEMI
Left semijoin, i.e.