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è)用戶登錄后才能發(fā)表評(píng)論。


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

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 灌云县| 宜黄县| 乌兰察布市| 乐安县| 满洲里市| 罗城| 惠安县| 伽师县| 阳新县| 梅州市| 富锦市| 思茅市| 涞水县| 延津县| 花莲市| 夏邑县| 南平市| 波密县| 丽江市| 睢宁县| 德惠市| 宜城市| 辰溪县| 凌源市| 青铜峡市| 龙游县| 淮南市| 乌兰浩特市| 迁安市| 琼结县| 平塘县| 南木林县| 习水县| 梓潼县| 萍乡市| 突泉县| 武邑县| 荃湾区| 高密市| 饶阳县| 苍山县|