RTRIM Function In SQL Server 2008

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

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

© 2020 DotNetHeaven. All rights reserved.