Using PATINDEX to find varying length patterns in T-SQL

后端 未结 6 2136
旧时难觅i
旧时难觅i 2020-12-19 01:20

I\'m looking to pull floats out of some varchars, using PATINDEX() to spot them. I know in each varchar string, I\'m only interested in the first float that exists, but they

6条回答
  •  佛祖请我去吃肉
    2020-12-19 02:01

    Yes you need to link to the clr to get regex support. But if PATINDEX does not do what you need then regex was designed exactly for that.

    http://msdn.microsoft.com/en-us/magazine/cc163473.aspx

提交回复
热议问题