concat Functie

Van toepassing op:controleren met ja Databricks SQL-controle gemarkeerd als ja Databricks Runtime

Retourneert de samenvoeging van de argumenten. Deze functie is een synoniem voor || operator (pipe pipe sign).

Syntaxis

concat(expr1, expr2 [, ...] )

Argumenten

  • exprN: Expressies die allemaal TEKENREEKS, BINAIR of ALLE ARRAY's van TEKENREEKS of BINAIR zijn.

Retourneert

Het resultaattype komt overeen met de argumenttypen.

Er moet ten minste één argument zijn.

Voorbeelden

> SELECT concat('Spark', 'SQL');
 SparkSQL
> SELECT concat(array(1, 2, 3), array(4, 5), array(6));
 [1,2,3,4,5,6]