SQL Server 服务器中的正则表达式? [英] Regular Expressions in SQL Server servers?

查看:43
本文介绍了SQL Server 服务器中的正则表达式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用完整的正则表达式功能集进行高效查询.

Is it possible to make efficient queries that use the complete regular expression feature set.

如果不是微软真的应该考虑这个功能.

If not Microsoft really should consider that feature.

推荐答案

对于 SQL Server 2000(以及任何其他 32 位版本的 SQL Server),有 xp_pcre,它引入了 Perl 兼容的正则表达式作为一组扩展存储过程.我用过,很好用.

For SQL Server 2000 (and any other 32 bit edition of SQL Server), there is xp_pcre, which introduces Perl compatible regular expressions as a set of extended stored procedures. I've used it, it works.

更新的版本可让您直接访问 .NET 集成正则表达式(此链接似乎已失效,这里是另一个链接:MSDN:如何:使用 CLR 数据库对象).

The more recent versions give you direct access to the .NET integrated regular expressions (this link seems to be dead, here is another one: MSDN: How to: Work with CLR Database Objects).

这篇关于SQL Server 服务器中的正则表达式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆