REVERSE
Returns the string str with the order of the characters reversed.
Syntax
REVERSE(s)
Arguments
Arguments | Description |
---|---|
s | The string value. |
Return Type
A String data type value.
Examples
mysql> SELECT REVERSE('abc');
+----------------+
| REVERSE('abc') |
+----------------+
| cba |
+----------------+