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

Reverse the order of characters in a string.

SELECT REVERSE(‘SQL Tutorial’);

Definition and Usage

The REVERSE() function reverses a string and returns the result.

Syntax

REVERSE(string)

Parameter Values

Parameter

Description

string

Required: The string that will have its characters reversed.

Technical Details

Parameter

Description

string

Required: The string that will have its characters reversed.

More Examples

Example

Reverse the characters in the CustomerName text.

SELECT REVERSE(CustomerName)
FROM Customers;