2023-03-06

explain select count(*) as allCount, IFNULL(sum(hit_count), 0) as hitCount, count(discern_status LIKE '20%' OR NULL) as offLineNum, count(discern_status = 0 OR NULL) normalNum, count(discern_status LIKE '10%' OR NULL) as policeNum, count(handle_result = -1 OR NULL) as untreated, count(handle_result != -1 OR NULL) as processed from tb_discern_result WHERE FIND_IN_SET(project_id,'1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,24,26,27,28,29,30,31,32,33,34,35,36,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91');

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 查看oracle历史执行计划: set pagesize 500 col plan_hash_value form...
    ben_782f阅读 197评论 0 0
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,504评论 0 10
  • 使错误的执行计划失效: 调用PURGE函数影响最小的方式: select s.sql_text,s.address...
    ben_782f阅读 331评论 0 0
  • 1、数据库介绍篇 1.1什么是数据库 数据库:保存数据的仓库。它体现我们电脑中,就是一个文件系统。然后把数据都保存...
    投石机阅读 789评论 0 0
  • MySQL基础操作 创建数据库 创建数据库,该命令的作用: 如果数据库不存在则创建,存在则不创建。 创建RUNOO...
    少年_323a阅读 812评论 0 0