CONCAT(...)

All functions > STRING > CONCAT(...)

Returns a single concatenated string from a list of strings.

Syntax

CONCAT(string, string, …)  ·  CONCAT_FN(ARRAY[…])

Notes

  • Variadic CONCAT(a, b, …) is implemented the same way as CONCAT_FN(ARRAY[…])
  • Every argument must be VARCHAR: bare NULL is untyped and fails inference—use NULL(VARCHAR) or COALESCE(expr, '')
  • NULL entries in the bundled list are omitted—they are not treated as empty strings; literal '' is kept and participates. Use COALESCE when you need a visible empty segment
  • No separator between pieces; use CONCAT_WS for a delimiter
  • For binary left || right (and left-associative chains), see Related operators (||)

Related Functions

Examples

CONCAT(...)

FeatureQL
SELECT
    f1 := CONCAT('A', 'B', 'C'), -- Several pieces
    f2 := CONCAT('Hello', ' ', 'World') -- Includes a space argument
;
Result
f1 VARCHARf2 VARCHAR
ABCHello World

Edge cases

FeatureQL
SELECT
    f1 := CONCAT('A', NULL(VARCHAR), 'B') -- NULL propagates
;
Result
f1 VARCHAR
NULL

Last update at: 2026/05/26 17:22:09