String Operators
- reference
SQL++ provides the concatenation string operator.
Concatenation
The concatenation operator joins two strings. The result of the concatenation operator is also a string.
Example
The following example shows concatenation of two strings.
Query
WITH airline AS (
[
{ "name": "Delta Airlines", "code": "DL" },
{ "name": "United Airlines", "code": "UA" }
]
)
SELECT name || " (" || code || ")" AS full_airline_name
FROM airline
Result
[
{
"full_airline_name": "Delta Airlines (DL)"
},
{
"full_airline_name": "United Airlines (UA)"
}
]
Related Links
Refer to Comparison Operators for string comparisons.