REVERSE() Function in SQL Server

Rumman Ansari   Software Engineer   2023-03-25   5523 Share
☰ Table of Contents

Table of Content:


Syntax:


REVERSE('Any_String_Expression') 

Reverses all the characters in the given string expression.

Code:


 Select REVERSE('ABCDEFGHIJKLMNOPQRSTUVWXYZ')

Output:

The above code will produce the following result-


 ZYXWVUTSRQPONMLKJIHGFEDCBA