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 閱讀(2521) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 阿图什市| 含山县| 万山特区| 历史| 启东市| 广宗县| 贵南县| 左贡县| 贡觉县| 修武县| 古浪县| 朝阳区| 龙海市| 双桥区| 当雄县| 紫阳县| 福鼎市| 紫金县| 兰州市| 北京市| 旬阳县| 大渡口区| 怀化市| 金秀| 花莲县| 天水市| 屏东县| 望奎县| 济源市| 崇明县| 乡宁县| 开鲁县| 陕西省| 西畴县| 东源县| 新昌县| 宁强县| 万荣县| 平乐县| 大宁县| 武宁县|