Reverse the order of characters in a string.
SELECT REVERSE(‘SQL Tutorial’); |
The REVERSE() function reverses a string and returns the result.
REVERSE(string) |
Parameter |
Description |
string |
Required: The string that will have its characters reversed. |
Parameter |
Description |
string |
Required: The string that will have its characters reversed. |
Reverse the characters in the CustomerName text.
SELECT REVERSE(CustomerName) FROM Customers; |