In this post explains how to use the RTRIM function in SQL Server (Transact-SQL) with syntax and examples.
In SQL Server (Transact-SQL), the RTRIM function removes all space characters from the right-hand side of a string.
The syntax for the RTRIM function in SQL Server (Transact-SQL) is:
The string to trim the space characters from the right-hand side.
The RTRIM function can be used in the following versions of SQL Server (Transact-SQL):
Let's look at some SQL Server RTRIM function examples and explore how to use the RTRIM function in SQL Server (Transact-SQL).
For example: