Example
Reverse a string:
sql
SELECT REVERSE("SQL Tutorial");
Definition and Usage
The REVERSE() function reverses a string and returns the result.
Syntax
text
REVERSE(string)
Parameter Values
| Parameter | Description |
|---|---|
| string | Required. The string to reverse |
Technical Details
| Works in: | From MySQL 4.0 |
|---|
More Examples
Example
Reverse the text in CustomerName:
sql
SELECT REVERSE(CustomerName)
FROM Customers;