Web Analytics Made Easy - Statcounter

RIGHT() function in SQL Server

SQL Server – RIGHT () function

Right():-

This function returns the specified number of characters from the Right part of the given character string.

Syntax:-

Select RIGHT ( character_expression , integer_expression )

For example, the below query will return two characters from the last.

Select RIGHT(‘Vivek’,2)

Result

ek

DMCA.com


Discover more from Technology with Vivek Johari

Subscribe to get the latest posts sent to your email.

Leave a Reply

Scroll to Top

Discover more from Technology with Vivek Johari

Subscribe now to keep reading and get access to the full archive.

Continue reading