關於SQL ASP批量替換語句 執行

 

關於SQL ASP批量替換語句 執行

Update flash Set pic=replace(pic,'/flashpic/','/gamemp322pic/') where id>1

(所影響的行數爲 7689 行)
Update flash Set flashurl=replace(flashurl,'http://swf.hhzone.net/flashfile/','/gamemp322flash2008/') where id>1

(所影響的行數爲 7689 行)

/flashpic/

 

上面都是正確的

 

下面是試驗的

http://swf.hhzone.net/flashfile/   flashurl

http://swf.hhzone.net/flashpic/


update table_name set aa=replace(aa,'你好','')


Update flash Set pic=replace(pic,'http://swf.hhzone.net/flashpic/','/')


UPDATE flash
SET pic = REPLACE(pic,'http://swf.hhzone.net/flashpic/','/')

update flash set pic='http://swf.hhzone.net/flashpic/' where pic='/'

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章