中文字幕在线观看,亚洲а∨天堂久久精品9966,亚洲成a人片在线观看你懂的,亚洲av成人片无码网站,亚洲国产精品无码久久久五月天

Discuz 批量替換/修改門戶文章標(biāo)題、內(nèi)容

2018-11-02    來源:學(xué)做網(wǎng)站論壇

容器云強勢上線!快速搭建集群,上萬Linux鏡像隨意使用

我們做論壇網(wǎng)站時,如果網(wǎng)站中需要替換或修改多個文章,就需要使用SQL批量操作。以前我們講過DZ論壇批量修改已發(fā)布貼子內(nèi)容,今天再來講一下,Discuz 如何批量修改門戶文章標(biāo)題及內(nèi)容。

dz

Discuz 批量替換/修改門戶文章標(biāo)題、內(nèi)容?SQL命令:

批量替換門戶文章標(biāo)題:

UPDATE pre_portal_article_content SET content=REPLACE(subject,'替換前','替換后');

批量替換門戶文章內(nèi)容:

UPDATE pre_portal_article_content SET content=REPLACE(content,'替換前','替換后');

批量替換論壇貼子標(biāo)題:

UPDATE pre_forum_thread SET subject=REPLACE(subject,'替換前,'替換后');

批量替換論壇貼子內(nèi)容:

UPDATE pre_forum_post SET message=REPLACE(message,'替換前','替換后');

舉例:

UPDATE pre_portal_article_content SET content=REPLACE(content,'<div><embed','<div><embed tt');
UPDATE pre_portal_article_content SET content=REPLACE(content,'height="500">','height="tt500">');

UPDATE pre_portal_article_content SET content=REPLACE(content,'<embed src=','<div><embed src=');
UPDATE pre_portal_article_content SET content=REPLACE(content,'height="500">','height="500"></div><div>學(xué)做網(wǎng)站論壇https://www.xuewangzhan.com/</div>');

UPDATE pre_portal_article_content SET content=REPLACE(content,'<div><embed tt','<div><embed');
UPDATE pre_portal_article_content SET content=REPLACE(content,'height="tt500">','height="500">');

提醒:在進行SQL批量操作前,不要忘記進行網(wǎng)站數(shù)據(jù)庫備份。更多DISCUZ批量操作方法,請參考DISCUZ論壇常用批量修改SQL語句匯總。

標(biāo)簽: 數(shù)據(jù)庫

版權(quán)申明:本站文章部分自網(wǎng)絡(luò),如有侵權(quán),請聯(lián)系:west999com@outlook.com
特別注意:本站所有轉(zhuǎn)載文章言論不代表本站觀點!
本站所提供的圖片等素材,版權(quán)歸原作者所有,如需使用,請與原作者聯(lián)系。

上一篇:discuz如何設(shè)置門戶為默認(rèn)首頁

下一篇:DISCUZ如何制作網(wǎng)站導(dǎo)航的下拉菜單