reverse

description

Syntax

VARCHAR reverse(VARCHAR str)

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

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