RTRIM() function in SQL Server

SQL Functions SQL Server
RTRIM():-This function is used to get the string after the removal of all trailing blanks.

Syntax:-

RTRIM ( character_expression )

For example:-

Select RTRIM(‘Vivek Johari  ‘)

Result:-

Vivek Johari (without blank spaces on Right side)

DMCA.com

Leave a Reply