PAT_INDEX_UDF
Description
Returns the starting position of the first occurrence of a pattern in a specified expression, or zero if the pattern is not found, on all valid text and character data types. (SQLServer documentation)
SQLServer syntax
Custom UDF overloads
Parameters
PATTERN: A varchar expression to evaluate over an expression.
EXPRESSION: A varchar expression that is the target of the pattern.
SQL Server
Snowflake
Related EWIs
MSCEWI1020: CUSTOM UDF INSERTED.
Last updated