# REVERSE

## Syntax

```sql
REVERSE(str)
```

## Description

Returns the string `str` with the order of the characters reversed. If the input string is `NULL`, the function returns `NULL`.

## Examples

```sql
SELECT REVERSE('desserts');
+---------------------+
| REVERSE('desserts') |
+---------------------+
| stressed            |
+---------------------+
```

<sub>*This page is licensed: GPLv2, originally from*</sub> [<sub>*fill\_help\_tables.sql*</sub>](https://github.com/MariaDB/server/blob/main/scripts/fill_help_tables.sql)

{% @marketo/form formId="4316" %}
