Skip to content

Commit f022a3a

Browse files
authored
Merge pull request #2056 from MCTSQL/patch-2
Add remark stating PATINDEX returns 1-based value
2 parents 68e128b + a0426d0 commit f022a3a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/t-sql/functions/patindex-transact-sql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ PATINDEX ( '%pattern%' , expression )
4949

5050
## Remarks
5151
If either *pattern* or *expression* is NULL, PATINDEX returns NULL.
52-
52+
53+
The starting position returned is 1-based, not 0-based.
54+
5355
PATINDEX performs comparisons based on the collation of the input. To perform a comparison in a specified collation, you can use COLLATE to apply an explicit collation to the input.
5456

5557
## Supplementary Characters (Surrogate Pairs)

0 commit comments

Comments
 (0)