Syntax
REVERSE(str)
Purpose
You can call this function to return 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 (0.00 sec)
obclient> SELECT REVERSE(1000);
+---------------+
REVERSE(1000)
+---------------+
0001
+---------------+
1 row in set (0.00 sec)