Files
doris/docs/en/sql-reference/sql-functions/string-functions/reverse.md
yangzhg 94b3a2bd50 [Bug] Fix string functions not support multibyte string (#3345)
Let string functions support utf8 encoding
2020-05-08 12:52:46 +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