04 2011 档案
SQL Server 2005 CLR用户定义函数实现正则表达式
摘要:1.创建SQL CLR数据库项目2.添加用户自定义函数3.编写代码[Microsoft.SqlServer.Server.SqlFunction] public static SqlString F_RegularExpression(SqlString input, SqlStringpattern) { Regex regex = new Regex(pattern.Value, RegexOptions.IgnorePatternWhitespace| RegexOptions.Singleline); return regex.Match(input.Value).Value;}4.修
阅读全文
浙公网安备 33010602011771号