REVERSE

2024-03-05 01:54:27  Updated

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
Contact Us