Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Leonid Belov — — source: Informix-list mailing list archive (1991-1998)
Darrel Davis wrote:
> Does Informix SQL have any comparable commands
> like Oracle's LTRIM and RTRIM? Is there another
> way to get trimmed strings is SQL. I know about
> 'clipped' in 4GL but we need to be able to do it
> in SQL.
>
> TIA,
> -darrel
>
TRIM(LEADING FROM string_value)
TRIM(TRAILING FROM string_value)
TRIM(BOTH FROM string_value) == TRIM(string_value)
You can also trim given number of blanks:
TRIM(Leading 15 FROM s)
Hope this helps
Leonid
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.