Share via

Why does select PATINDEX return unexpected value?

Max Linde 0 Reputation points
2023-08-21T08:17:47.39+00:00

Why does select PATINDEX('%[^0-9]%', '1½z') return 3?

I think the returned value should be 2. Or doesn't [0-9] represent the integers 0-9?

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.