SQL-J Language Reference,
Page 79 of 118


[top]
[prev]
[next]
Documentation Top
Global Index
Reference Manual
TOC Index
Grammar index
Developer's Guide
TOC Index
Tuning Cloudscape
TOC Index

RTRIM

RTRIM trims one or more instances of a trailing character string, or any characters within the trailing character string, from a character string expression.

RTRIM(CharacterExpression [ , trimCharacters ] )

A CharacterExpression is a CHAR, VARCHAR, or LONG VARCHAR data type, any built-in type that is implicitly converted to a string, or any Java data type that directly maps to a built-in type that is implicitly converted to a string.

RTRIM returns NULL if either CharacterExpression or trimCharacters evaluates to null.

If trimCharacters is not specified, it defaults to ' ' (blank). It can be multiple characters.

Examples

RTRIM(' asdf ') -- returns ' asdf'
RTRIM('asdf', 'sa') -- returns 'asdf'
RTRIM('asdf', 'fd') -- returns 'as'
RTRIM('asdfdfdf', 'df') --returns 'as'
RTRIM('asdfgfffffff', 'df') --returns 'asdfg'
[top]
[prev]
[next]


Cloudscape Version 3.0
For technical support, go to: www.cloudscape.com and click Support.
Copyright © 1998 and 1999 Cloudscape, Inc. All rights reserved.