update dede_arctype set templist = replace(templist,"{style}/list_qz.htm",'{style}/oz_ongpage.htm') where id in (29,20,31,35,36,37,38,40,41,42,43,44,45,46,47) |
update dede_archives set set temparticle = replace(temparticle,"{style}/article_article_xb.htm",'{style}/article_article.htm'); |
update `dede_arctype` set namerule='{typedir}/{aid}.html'; |
update `dede_archives` set click=598 |
update `dede_archives` set click=598 WHERE id=131 |
update dede_archives set writer=replace(writer,'admin','M1850资源网'); |
update dede_archives set source=replace(source,'未知','M1850资源网'); |
update dede_archives set title=replace(title,'改之前','改之后'); |
update dede_archives set description=replace(description,'原来的关键词','替换后的关键词'); |
update dede_addonarticle set body=replace(body,'原来的关键词','替换后的关键词'); |
alter table dede_archives modify column title varchar(200) |
update dede_addonarticle set body=replace(body,'href="http://www.genban.org','href="http://genban.org'); |
update dede_archives set arcrank=0 |
update dede_archives set litpic=replace(litpic,'原来的字符','替换后的字符') |
update dede_arctype set typedir=replace(typedir,'a/','') |
delete from dede_addonarticle where aid>0; delete from dede_arctiny where id>0; delete from dede_archives where id>0; |
delete from dede_addonarticle where aid >= 100 and aid< =5000; delete from dede_arctiny where id >= 100 and id< =5000; delete from dede_archives where id >= 100 and id<=5000; |
delete from dede_addonimages where typeid = 7; delete from dede_arctiny where typeid = 7; delete from dede_archives where typeid = 7; |
delete from dede_arctype where id in (93,94,95,96,97) |
update dede_archives set typeid='70' where typeid in (93,94,95,96,97) |
Update `dede_arctype` set reid='目标父栏目ID' where id in(2,3,4,5) |
delete from dede_addonarticle; delete from dede_addonimages; delete from dede_archives; delete from dede_arctiny; delete from dede_co_htmls; delete from dede_co_urls; delete from dede_co_mediaurls; delete from dede_tagindex ; delete from dede_taglist; delete from dede_keywords; |
alter table `dede_archives` auto_increment =1; alter table `dede_arctiny` auto_increment =1; alter table `dede_addonarticle` auto_increment =1; |
alter table `dede_arctype` auto_increment =1; |