Syntax
REVERSE(str)
Purpose
REVERSE() returns the characters of the str string in reverse order.
This function is multi-byte safe.
Examples
obclient> SELECT REVERSE('oceanbase');
+----------------------+
| REVERSE('oceanbase') |
+----------------------+
| esabnaeco |
+----------------------+
1 row in set
obclient> SELECT REVERSE(1000);
+---------------+
| REVERSE(1000) |
+---------------+
| 0001 |
+---------------+
1 row in set