Files
doris/docs/en/sql-manual/sql-functions/string-functions/concat.md
jiafeng.zhang 267e8b67c2 [refactor][doc]The new version of the document is online (#9272)
replace the `docs/` with `new-docs/`
2022-04-28 15:22:34 +08:00

1.4 KiB

title, language
title language
concat en

concat

Description

Syntax

VARCHAR concat (VARCHAR,...)

Connect multiple strings and return NULL if any of the parameters is NULL

example

mysql> select concat("a", "b");
+------------------+
| concat('a', 'b') |
+------------------+
| ab               |
+------------------+

mysql> select concat("a", "b", "c");
+-----------------------+
| concat('a', 'b', 'c') |
+-----------------------+
| abc                   |
+-----------------------+

mysql> select concat("a", null, "c");
+------------------------+
| concat('a', NULL, 'c') |
+------------------------+
| NULL                   |
+------------------------+

keyword

CONCAT