reverse Function
The reverse function returns the characters of the source string in reverse order, where the string is written beginning with the last character first. For example, the reverse order for "welcome" is "emoclew".
Syntax
returnvalue reverse(source)
source ::= any*
returnvalue ::= string
Semantics
Example 11-24 reverse Function
In this example, the first name is displayed along with its reverse order.
SELECT firstname, reverse(firstname) FROM users;
+-----------+----------+
| firstname | Column_2 |
+-----------+----------+
| John | nhoJ |
| Peter | reteP |
| Mary | yraM |
+-----------+----------+