RIGHT() Function in SQL Server

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

Table of Content:


Syntax:


RIGHT(Character_Expression, Integer_Expression)

Returns the specified number of characters from the right hand side of the given character expression.

Code:

 Select RIGHT('ABCDE', 3)


Output:

The above code will produce the following result-


 CDE