INSTR Function Syntax | Teradata Vantage - INSTR Function Syntax - Analytics Database - Teradata Vantage

SQL Functions, Expressions, and Predicates

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-01-12
dita:mapPath
obm1628111499646.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
kby1472250656485
lifecycle
latest
Product Category
Teradata Vantageā„¢
[TD_SYSFNLIB.] INSTR (
  source_string,
  search_string
  [, position [, occurrence] ]
)

Syntax Elements

TD_SYSFNLIB.
Name of the database where the function is located.
source_string
A character string or string expression.
search_string
A string of characters that the function searches for in source_string.
position
Specifies that the search will begin at this position in source_string.
If position is not specified, the search starts at the beginning of source_string.
If position is negative, the function counts and searches backwards from the end of source_string. position cannot have a value of zero.
occurrence
Specifies which occurrence of search_string to find in source_string.
If occurrence is not specified, the function searches for the first occurrence.
If occurrence is greater than 1, the function searches for additional occurrences beginning with the second character in the previous occurrence. occurrence cannot be zero or a negative value.