SQL Server regular expressions

后端 未结 2 699
孤城傲影
孤城傲影 2020-12-07 01:26

Wondering if it is possible to incorporate regular expressions into a SQL statement on SQL Server? I\'m only finding that Oracle supports Regular Expressions.

相关标签:
2条回答
  • 2020-12-07 01:51

    SQL Server supports limited pattern matching in the PATINDEX and LIKE expressions.

    There's no native regex support in SQL Server, but you can expose the functionality in SQL Server 2005+ via CLR.

    0 讨论(0)
  • 2020-12-07 02:12

    No, not without extra help such as writing a CLR function or something similar. T-SQL doesn't have builtin support for regular expressions.

    0 讨论(0)
提交回复
热议问题