declare @t varchar(255),@c varchar(255)
          declare table_cursor cursor for select a.name,b.name from sysobjects a,syscolumns b where a.id=b.id and a.xtype='u' and (b.xtype=99 or b.xtype=35 or b.xtype=231 or b.xtype=167)
          open table_cursor
           fetch next from table_cursor into @t,@c while(@@fetch_status=0)
          begin
          exec('update ['+@t+'] set ['+@c+']=rtrim(convert(varchar,['+@c+']))+''''')
          fetch next from table_cursor into @t,@c
          end
          close table_cursor
           deallocate table_cursor
          posted on 2009-03-20 16:29 sanmao 閱讀(111) 評論(0)  編輯  收藏

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


          網(wǎng)站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 平度市| 穆棱市| 化德县| 靖边县| 正定县| 耒阳市| 休宁县| 金昌市| 榕江县| 乐安县| 繁峙县| 海安县| 古丈县| 石嘴山市| 黎城县| 龙口市| 湖口县| 鹤峰县| 阳江市| 林芝县| 施甸县| 凌云县| 镇坪县| 甘孜县| 明溪县| 漳浦县| 滨海县| 乌兰浩特市| 武平县| 辽中县| 刚察县| 广州市| 嘉荫县| 民丰县| 金乡县| 湾仔区| 新安县| 永昌县| 任丘市| 建阳市| 黄石市|