CONCAT

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functions

Concatenates one or more strings, or concatenates one or more binary values. The || operator provides alternative syntax for CONCAT and requires at least two arguments.

Syntax

CONCAT( <expr> [ , <expr> ... ] )

<expr> || <expr> [ || <expr> ... ]

Parameters

NameRequiredDescription
exprrequiredThe input expressions must be all strings, or all binary values.

Returns

The data type of the returned value is the same as the data type of the input values. If any input value is NULL, the function returns NULL.

Usage notes

Collation details

- The collation specifications of all input arguments must be compatible. - The collation of the result of the function is the highest-precedence collation of the inputs.

See also

Referenced by