create function getStr(@s nvarchar(4000)) returns nvarchar(500)
as
begin
 declare @i int
 while patindex('%[^0-9,^a-z,^A-Z,^阿-座,^'+char(32)+']%',@s)>0
 begin
   set @i=patindex('%[^0-9,^a-z,^A-Z,^阿-座,^'+char(32)+']%',@s)
   set @s=stuff(@s,@i,1,' ')
 end
 set @s=replace(@s,'^','')
 set @s=replace(@s,' ','')
 return @s
 end
posted on 2013-11-01 15:06 sanmao 阅读(2458) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 

常用链接

留言簿(5)

随笔分类

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜