16.20 - FOR - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

Advanced SQL Engine
Teradata Database
Release Number
Release Date
March 2019
Content Type
Programming Reference
Publication ID
English (United States)

A keyword indicating that the searched substring is bounded on the right by the value n2.

If you omit FOR n2, then you extract the entire right hand portion of the named string or string expression, beginning at the position named by n1.

If string_expression is a BYTE or CHAR type and you omit FOR n2, trailing binary zeros or pad characters are trimmed.