POST TIME:2019-09-29 14:49
1,替換文章,新聞內(nèi)容的代碼,包括鏈接,文字或是圖片、附件等地址
update `dede_addonarticle` set body=replace(body,’要替換的內(nèi)容’,’替換后顯示的內(nèi)容’);
替換文章標(biāo)題里的文字
update `dede_archives` set title=replace(title,’要替換的內(nèi)容’,’替換后顯示的內(nèi)容’);
替換文章來(lái)源
update `dede_archives` set writer=replace(writer,’原來(lái)的編輯人名’,’替換后顯示編輯人名’);
替換文章的關(guān)鍵詞,
update `dede_archives` set keywords=replace(keywords,’原來(lái)的關(guān)鍵詞’,’替換后顯示的關(guān)鍵詞’);
2,關(guān)鍵詞鏈接替換,
update `dede_keywords` set rpurl=replace(rpurl,’原來(lái)的域名’,’現(xiàn)在使用的新域名’);
3,復(fù)制網(wǎng)站的朋友可能用得到
a,替換網(wǎng)站欄目title標(biāo)簽里的內(nèi)容:update `dede_arctype` set seotitle=replace(seotitle,’不想要的內(nèi)容’,’替換后顯示的內(nèi)容’);
b,替換欄目description標(biāo)簽里的內(nèi)容:update `dede_arctype` set description=replace(description,’不想要的內(nèi)容’,’替換后顯示的內(nèi)容’);
c,欄目關(guān)鍵詞keywords標(biāo)簽里的內(nèi)容 :update `dede_arctype` set keywords=replace(keywords,’不想要的內(nèi)容’,’替換后顯示的內(nèi)容’);
簡(jiǎn)化一下語(yǔ)句吧,上面所有的語(yǔ)都是同一個(gè)語(yǔ)句
update `數(shù)據(jù)表名` set 字段名=replace(字段名,’不想要的內(nèi)容’,’替換后顯示的內(nèi)容’);