最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
dedecms中常用的数据表操作SQL语句
时间:2022-06-25 19:31:14 编辑:袖梨 来源:一聚教程网
删除所有注册会员
代码如下 | 复制代码 |
DELETE FROM `#@__member` WHERE `#@__member`.`mid`!= 1; TRUNCATE TABLE `#@__member_flink`; TRUNCATE TABLE `#@__member_person`; |
批量修改栏目为动态
代码如下 | 复制代码 |
UPDATE `#@__arctype` SET `isdefault` = '-1' |
批量删除文章
代码如下 | 复制代码 |
DELETE FROM #@__addonarticle WHERE aid>0; |
批量修改文章为动态显示
代码如下 | 复制代码 |
update #@__archives set ismake=-1; |
批量修改文章为静态显示
代码如下 | 复制代码 |
update #@__archives set ismake=1; |
批量删除所有内容为空文章
代码如下 | 复制代码 |
DELETE FROM #@__arctiny where id in(select aid from #@__addonarticle where body=''); |
批量删除标题为空的文章
代码如下 | 复制代码 |
DELETE FROM #@__addonarticle where aid in(select id from #@__archives where title=''); DELETE FROM #@__arctiny where id in(select id from #@__archives where title=''); DELETE FROM #@__archives where where title=''; |
批量审核文档
代码如下 | 复制代码 |
Update `#@__arctiny` set arcrank='0' where arcrank='-1'; |
批量删除未审核的文档
代码如下 | 复制代码 |
DELETE FROM #@__addonarticle where aid in(select id from #@__arctiny where arcrank='-1'); TRUNCATE TABLE `#@__member_space`; |
相关文章
- 《彩色点点战争》推图常用三大主c玩法详解 01-23
- 《燕云十六声》池鱼林木任务攻略 01-23
- 《大连地铁e出行》查看行程记录方法 01-23
- 《明日方舟》2025春节限定干员余角色介绍 01-23
- 《崩坏:星穹铁道》万敌光锥搭配攻略 01-23
- 《燕云十六声》一药千金任务攻略 01-23