> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# concat

> Concatenates multiple strings into a single string.

This function combines multiple strings. If any of the parameter value is NULL, it will return NULL.

## Syntax

```Haskell theme={null}
VARCHAR concat(VARCHAR,...)
```

## Examples

```Plain Text theme={null}
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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.