Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

REVERSE

Example

Invert the order of characters in a string.

SELECT REVERSE(“SQL Tutorial”); 

Definition and Usage

The REVERSE() function flips a string and provides the outcome.

Syntax

REVERSE(string)

Parameter Values

Parameter

Description

string

Input required: The string that will be reversed.

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Invert the order of characters in the CustomerName column.

SELECT REVERSE(CustomerName)
FROM Customers;