MySQL, MariaDB, MSSQL, Snowflake, ClickHouse: use the variadic
CONCAT(a, b, c, ...) function (all support 2+ arguments).
Postgres, CockroachDB, Redshift, SQLite, Oracle, DB2: use the ||
operator. These dialects' CONCAT() function (where it exists at all)
is limited to exactly 2 arguments (Oracle, DB2), so || is used
uniformly for correctness with any number of parts. Postgres/CockroachDB/
SQLite treat || as the idiomatic concatenation operator.
String concatenation.
CONCAT(a, b, c, ...)function (all support 2+ arguments).||operator. These dialects'CONCAT()function (where it exists at all) is limited to exactly 2 arguments (Oracle, DB2), so||is used uniformly for correctness with any number of parts. Postgres/CockroachDB/ SQLite treat||as the idiomatic concatenation operator.