Files
doris/docs/en/sql-manual/sql-functions/string-functions/reverse.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.3 KiB

title, language
title language
REVERSE en

reverse

description

Syntax

VARCHAR reverse(VARCHAR str)

The REVERSE() function reverses a string and returns the result.

example

mysql> SELECT REVERSE('hello');
+------------------+
| REVERSE('hello') |
+------------------+
| olleh            |
+------------------+
1 row in set (0.00 sec)

mysql> SELECT REVERSE('你好');
+------------------+
| REVERSE('你好')   |
+------------------+
| 好你              |
+------------------+
1 row in set (0.00 sec)

keyword

REVERSE