Selecting Rows with a WHERE Clause
Use any of the elements described in the table below in a WHERE
clause to select or exclude rows (or both) based on a conditional
statement. Each WHERE
clause must be enclosed within parentheses.
Literals must be enclosed within single quotes.
Table 8-4 Permissible WHERE Operators
Element | Examples |
---|---|
Column names |
|
Numeric values |
-123, 5500.123 |
Literal strings |
'AUTO', 'Ca' |
Built-in column tests |
|
Comparison operators |
=, <>, >, <, >=, < |
Conjunctive operators |
|
Grouping parentheses |
Use open and close parentheses ( ) for logical grouping of multiple elements. |
Oracle GoldenGate does not support FILTER
for columns that have a multi-byte character set or a character set that is incompatible with the character set of the local operating system.
Arithmetic operators and floating-point data types are not supported by
WHERE
. To use more complex selection conditions, use a
FILTER
clause or a user exit routine. See Using User Exits to Extend Oracle GoldenGate Capabilities for more information.
The syntax for WHERE
is identical in the TABLE
and MAP
statements:
TABLEtable
, WHERE (clause
);
MAPsource_table
, TARGETtarget_table
, WHERE (clause
);