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 ::= stringSemantics
Example 12-54 reverse Function
In this example, the first name is displayed along with its reverse order.
SELECT firstname, reverse(firstname) FROM usersOutput: +-----------+----------+
| firstname | Column_2 |
+-----------+----------+
| John | nhoJ |
| Peter | reteP |
| Mary | yraM |
+-----------+----------+