OceanBase Database supports character concatenation operators.
The following table describes the character concatenation operators supported in the current version of OceanBase Database.
| Operator | Operand | Description |
|---|---|---|
|| |
Binary | Concatenates two strings. |
The || operator can also be used as the logical OR operator. The behavior of the || operator is determined by the sql_mode parameter:
If
sql_modecontainsPIPES_AS_CONCAT, the||operator is used as a character concatenation operator.If
sql_modedoes not containPIPES_AS_CONCAT, the||operator is used as a logical OR operator.
