Table of Contents
How to Use the REVERSE() Function in SQL Server: A Complete Guide
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
Get SQL updates by email
Short, practical lessons and course updates from Rumman Ansari. No spam.