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) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           

          常用鏈接

          留言簿(5)

          隨筆分類(lèi)

          隨筆檔案

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 林甸县| 黑河市| 两当县| 太仓市| 太谷县| 京山县| 丰台区| 多伦县| 杭锦后旗| 开鲁县| 盐山县| 黔西| 江都市| 鸡泽县| 寻乌县| 上思县| 虞城县| 灯塔市| 台中县| 玛曲县| 林州市| 怀柔区| 类乌齐县| 赤水市| 湖州市| 屏山县| 开原市| 新田县| 韩城市| 如东县| 平远县| 大厂| 鸡西市| 象山县| 固镇县| 内江市| 阳西县| 南阳市| 广南县| 榆中县| 黄平县|