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)站導(dǎo)航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 大悟县| 卢湾区| 岳池县| 读书| 古交市| 湛江市| 新乡县| 天长市| 永胜县| 清徐县| 嘉荫县| 炎陵县| 巍山| 定兴县| 盐城市| 郓城县| 江永县| 太康县| 仙桃市| 陆丰市| 灵川县| 永嘉县| 双峰县| 静安区| 绩溪县| 屏东市| 丰原市| 五华县| 如皋市| 资源县| 左云县| 利津县| 军事| 政和县| 邵阳市| 务川| 巢湖市| 蕲春县| 剑川县| 北辰区| 临泉县|