CONCAT

Syntax

CONCAT(  [ arg_1 [ , arg_2 [ , arg_3 [ , ... ] ] ] ] )

Description

Merges any number of strings. When non-string types are used, they're converted to strings and then merged.

Argument types:

  • arg_1Boolean | Date | Datetime | Fractional number | Geopoint | Geopolygon | Integer | String | UUID
  • arg_2Boolean | Date | Datetime | Fractional number | Geopoint | Geopolygon | Integer | String | UUID
  • arg_3Boolean | Date | Datetime | Fractional number | Geopoint | Geopolygon | Integer | String | UUID

Return type: String

Examples

CONCAT("Date of birth ", #2019-01-23#) = "Date of birth 2019-01-23"
CONCAT(2019, 01, 23) = "20190123"

Data source support

ClickHouse 21.8, Files, Google Sheets, Microsoft SQL Server 2017 (14.0), MySQL 5.7, Oracle Database 12c (12.1), PostgreSQL 9.3, Trino, Yandex Documents, YDB.

Previous