Files
doris/docs/documentation/cn/sql-reference/sql-functions/string-functions/concat.md
xy720 4c2a3d6da4 Merge Help document to documentation (#1586)
Help document collation (integration of help and documentation documents)
2019-08-07 21:31:53 +08:00

691 B

concat

description

Syntax

VARCHAR concat(VARCHAR,...)

将多个字符串连接起来, 如果参数中任意一个值是 NULL,那么返回的结果就是 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