4 SQL条件
SQL条件のタイプの構文
条件は、1つ以上の式と論理(ブール)演算子の組合せで指定し、TRUE
、FALSE
またはUNKNOWNのいずれかの値を戻します。
条件にはいくつかの書式があります。この項では、各書式の条件に対する構文を示します。副次句の構文については、「副次句」を参照してください。
関連項目:
SQL条件の詳細は、『Oracle Database SQL言語リファレンス』を参照してください。
expr1 [ NOT ] BETWEEN expr2 AND expr3
{ (condition) | NOT condition | condition { AND | OR } condition }
EQUALS_PATH (column, path_string [, correlation_integer ])
EXISTS (subquery)
expr IS [ NOT ] { NAN | INFINITE }
{ expr { = | != | ^= | <> | > | < | >= | <= } { ANY | SOME | ALL } ({ expression_list | subquery }) | ( expr [, expr ]... ) { = | != | ^= | <> } { ANY | SOME | ALL } ({ expression_list [, expression_list ]... | subquery } ) }
!=
、 ^=
および<>
は不等性テストを表します。
{ expr [ NOT ] IN ({ expression_list | subquery }) | ( expr [, expr ]... ) [ NOT ] IN ({ expression_list [, expression_list ]... | subquery } ) }
nested_table IS [ NOT ] A SET
[ dimension_column IS ] ANY
nested_table IS [ NOT ] EMPTY
expr IS [ NOT ] JSON [ FORMAT JSON ] [ STRICT | LAX ] [ { WITH | WITHOUT } UNIQUE KEYS ]
expr IS [ NOT ] OF [ TYPE ] ([ ONLY ] [ schema. ] type [, [ ONLY ] [ schema. ] type ]... )
cell_reference IS PRESENT
JSON_EQUAL ( (expr), (expr) )
JSON_EXISTS( expr [ FORMAT JSON ], JSON_basic_path_expression [ JSON_passing_clause ] [ JSON_exists_on_error_clause ] )
JSON_TEXTCONTAINS( column, JSON_basic_path_expression, string )
char1 [ NOT ] { LIKE | LIKEC | LIKE2 | LIKE4 } char2 [ ESCAPE esc_char ]
{ NOT | AND | OR }
expr [ NOT ] MEMBER [ OF ] nested_table
expr IS [ NOT ] NULL
REGEXP_LIKE(source_char, pattern [, match_param ] )
{ expr { = | != | ^= | <> | > | < | >= | <= } expr | (expr [, expr ]...) { = | != | ^= | <> } ( expression_list | subquery ) }
!=
、 ^=
および<>
は不等性テストを表します。
nested_table1 [ NOT ] SUBMULTISET [ OF ] nested_table2
UNDER_PATH (column [, levels ], path_string [, correlation_integer ] )