摘要: 在SQL的世界中CASE语句相当于if else 语句。 Case具有两种格式。简单Case函数和Case搜索函数。 1、举例:查询发生时间是9月份的各时间段的数量 SELECT COUNT(resum.id) AS number, ( CASE WHEN DATE_FORMAT(resum.hap 阅读全文
posted @ 2018-11-05 16:21 远景style 阅读(55093) 评论(0) 推荐(2) 编辑