reverse

description

Syntax

VARCHAR reverse(VARCHAR str)

将字符串反转,返回的字符串的顺序和源字符串的顺序相反。

example

  1. mysql> SELECT REVERSE('hello');
  2. +------------------+
  3. | REVERSE('hello') |
  4. +------------------+
  5. | olleh |
  6. +------------------+
  7. 1 row in set (0.00 sec)
  8. mysql> SELECT REVERSE('你好');
  9. +------------------+
  10. | REVERSE('你好') |
  11. +------------------+
  12. | 好你 |
  13. +------------------+
  14. 1 row in set (0.00 sec)

keyword

REVERSE