PATINDEX

Description

Returns the starting position of the first occurrence of a pattern in a specified expression (PATINDEX in Transact-SQL).

Sample Source Pattern

Syntax

PATINDEX( pattern, expression )

Arguments

pattern: Pattern to find.

expression: Expression to search.

Return Type

Integer. Returns 0 if the pattern is not found.

Examples

SELECT PATINDEX( '%on%', 'No, no, non esistono più') AS [PATINDEX]

Known Issues

No issues were found.

No related EWIs.

Last updated