Tuesday, December 20, 2016

Sql server reverse function

In this article I am going to explain the Sql server’s reverse function.


Description:
Sql server Reverse function used to get reverse order of string value.

Syntax:
reverse ( string_expression ) 

Example 1:
Select reverse('articlemirror')

Example 2:
Select reverse('123456789')

Example 3:
declare @city varchar(50) ='Chandigarh'
select reverse(@city) as 'Reversed Name'

Output:

Sql server reverse function

No comments:

Post a Comment