T-SQL strip all non-alpha and non-numeric characters

后端 未结 5 1804
予麋鹿
予麋鹿 2020-12-03 12:48

Is there a smarter way to remove all special characters rather than having a series of about 15 nested replace statements?

The following works, but only handles thr

5条回答
  •  死守一世寂寞
    2020-12-03 13:09

    If you can use SQL CLR you can use .NET regular expressions for this.

    There is a third party (free) package that includes this and more - SQL Sharp .

提交回复
热议问题