Table of Contents

    How to Use the REVERSE() Function in SQL Server: A Complete Guide

    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