RTRIM Function In SQL Server 2008

In this article i will explain how to use RTRIM Function in SQL.
  • 2768

Introduction

RTRIM() Function removes trailing space characters and return the text without the spaces at the end of sentence.

Syntax

SELECT RTRIM (character_expression)

where character_expression could be a constant variable or column.

Example

Remove trailing spaces from given string.

RTRIM-Function-SQL.jpg

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.