织梦批量修改替换文章标题内容SQL语句集合
文章标题字段的替换:
update dede_archives set title=replace(title,"被替换的内容","替换成什么") where typeid= 栏目ID;
文章关键词字段的替换;
update dede_archives set keywords=replace(keywords,"被替换的内容","替换成什么");
文章描述字段的替换;
update dede_archives set description=replace(description,"被替换的内容","替换成什么");
文章内容字段的替换;
update dede_addonarticle set body=replace(body,"被替换的内容","替换成什么") where typeid= 栏目ID;
批量删除某个表中的所有内容:
delete from 表名 where id < 20001 and id >28000;
update dede_archives set title=replace(title,"被替换的内容","替换成什么") where typeid= 栏目ID;
文章关键词字段的替换;
update dede_archives set keywords=replace(keywords,"被替换的内容","替换成什么");
文章描述字段的替换;
update dede_archives set description=replace(description,"被替换的内容","替换成什么");
文章内容字段的替换;
update dede_addonarticle set body=replace(body,"被替换的内容","替换成什么") where typeid= 栏目ID;
批量删除某个表中的所有内容:
delete from 表名 where id < 20001 and id >28000;