SQL-J Language Reference,
Page 75 of 118


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

LTRIM

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

LTRIM(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.

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

If trimCharacter is not specified, it defaults to ' ' (blank). It can consist of multiple characters.

Examples

LTRIM(' asdf ') -- returns 'asdf '
LTRIM('asasdf', 'as') --returns 'df'
LTRIM('asdf', 'sa') -- returns 'df'
LTRIM('asdf', 'fd') -- returns 'asdf'
LTRIM(130, 13) -- returns '0'
[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.