16.20 - return_opt - 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 numeric argument.

Valid values are:

  • 0 = function returns the beginning position of the match (default).
  • 1 = function returns the end position (character following the occurrence) of the match.

If this syntax element is NULL, NULL is returned. If the syntax element is omitted, the default value (0) value is used.