Description
The REVERSE( ) function returns the string (str) with the characters reversed.
This function has the form:
SELECT REVERSE(str)
Parameter | Description |
---|---|
str | A string |
Return Value
The string (str) with the characters reversed.
Examples
The following example shows the basic use of this function:
mysql> SELECT REVERSE('def');
-> 'fed'