Invert the order of characters in a string.
SELECT REVERSE(“SQL Tutorial”); |
The REVERSE() function flips a string and provides the outcome.
REVERSE(string) |
Parameter |
Description |
string |
Input required: The string that will be reversed. |
Works in: | From MySQL 4.0 |
Invert the order of characters in the CustomerName column.
SELECT REVERSE(CustomerName) FROM Customers; |