|
2#
楼主 |
发表于 2013-3-27 16:49:38
|
只看该作者
discuz的正确语句应该是这样的:
UPDATE pre_forum_post SET message=REPLACE(message,'要替换的内容','我爱浙北英语网http://ZbEnglish.net');
试过了,不要太灵光哦!
另外还有一下(必须按照顺序处理!):
UPDATE pre_forum_post SET invisible=REPLACE(invisible,'-5','0') where author=david - <font color="#666666" face="Monaco, Consolas, Lucida Console, Courier New, serif"><span style="font-size: 12px;">UPDATE pre_forum_post SET message=REPLACE(message,'[audio]','[mb]</span></font><span style="font-size: 12px; color: rgb(102, 102, 102); font-family: Monaco, Consolas, "Lucida Console", "Courier New", serif;">');</span>
复制代码- UPDATE pre_forum_post SET message=REPLACE(message,'www.zbenglish.net','localhost');
- UPDATE pre_forum_post SET message=REPLACE(message,'zbenglish.net','localhost');
- UPDATE pre_common_nav SET url=REPLACE(url,'www.zbenglish.net','localhost');
- UPDATE pre_common_nav SET url=REPLACE(url,'zbenglish.net','localhost');
- UPDATE pre_forum_post SET message=REPLACE(message,'cloud.zbenglish.net,'localhost\cloud');
- UPDATE pre_forum_post SET message=REPLACE(message,'web.zbenglish.net,'localhost\web');
复制代码 [size=14.432px]DELETE[size=14.432px] [size=14.432px]FROM[size=14.432px] [size=14.432px]`pre_forum_thread`[size=14.432px] [size=14.432px]WHERE[size=14.432px] [size=14.432px]displayorder[size=14.432px] [size=14.432px]=[size=14.432px] [size=14.432px]-[size=14.432px]2[size=14.432px]
DELETE FROM `pre_forum_thread` WHERE displayorder = -2
DELETE FROM `pre_forum_post` WHERE invisible = -2 |
|