Overview
TheCONCAT() function is used to concatenate one or more input values into a single result. It supports all data types in Oxla, except TIMESTAMPTZ, and the output will be returned as a concatenation of the input values.
Special cases: Returns NULL if there are no input rows or NULL values.
Examples
Case 1: Basic CONCAT() function
The below example uses the CONCAT() function to concatenate three values = into a single result:
Case 2: CONCAT() function using column
We have an example of a payment table that stores customer payment data.
custFirstName and custLastName columns of the payment table:
Case 3: CONCAT() function with NULL
We use theCONCAT() function in the following example to concatenate a string with a NULL value:
CONCAT function will skip the NULL value: