portableSql

RTrim Portable SQL Function

Syntax

RTrim as C (String as C)

Arguments

StringCharacter

A field or value.

Returns

resultCharacter

Returns a string with all trailing white space removed.

Description

Trim all trailing white space.

Discussion

The RTrim function trims all trailing white space from a string.

RTrim() function executed on the Northwind Access database
SELECT FIRST 1 RTrim('   Boston   ') AS Expr1 FROM Customers
=   Boston