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

# array_append

> Adds a new element to the end of the array.

Adds a new element to the end of the array. Returns an array.

## Syntax

```Haskell theme={null}
array_append(any_array, any_element)
```

## Examples

```plain text theme={null}
mysql> select array_append([1, 2], 3);
+------------------------+
| array_append([1,2], 3) |
+------------------------+
| [1,2,3]                |
+------------------------+
1 row in set (0.00 sec)

```

You can add NULL to the array.

```plain text theme={null}
mysql> select array_append([1, 2], NULL);
+---------------------------+
| array_append([1,2], NULL) |
+---------------------------+
| [1,2,NULL]                |
+---------------------------+
1 row in set (0.01 sec)

```

## keyword

ARRAY\_APPEND,ARRAY


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