RTRIM

Description

Returns a character expression after it removes leading blanks (RTRIM in Transact-SQL).

Sample Source Pattern

Syntax

RTRIM( string_expression )

Examples

Input:

IN -> SQLServer_01.sql
SELECT RTRIM('LAST TWO BLANK SPACES  ') AS [RTRIM]

Output:

RTRIM                |
---------------------+
LAST TWO BLANK SPACES|

Last updated