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

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


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 双柏县| 张家港市| 拜城县| 克东县| 卢龙县| 霸州市| 美姑县| 肃宁县| 泗阳县| 江北区| 巫山县| 清水县| 牡丹江市| 弥渡县| 堆龙德庆县| 惠安县| 荥阳市| 茶陵县| 涡阳县| 湖口县| 大同县| 姚安县| 郓城县| 桓台县| 巴林左旗| 西安市| 庆云县| 五大连池市| 青铜峡市| 凭祥市| 红桥区| 花垣县| 朝阳县| 郁南县| 永昌县| 昌图县| 福建省| 上虞市| 肇源县| 永修县| 安义县|