摘要: ORACLE几种常用的方法 1、decode 常见的用法 : 格式:decode(condition,value1,result[, value2,result2], default_result) 说明:decode相当于if条件判断函数,condition为表达式,相当于输入的值,当输入值为va 阅读全文
posted @ 2019-03-14 16:24 bokexiaoneng 阅读(395) 评论(0) 推荐(0) 编辑
摘要: where << group by << having where筛选是在分组之前筛选,筛选完之后再group by having是分组之后再筛选,筛选完之前先group by 执行顺序:where>sum、count等聚合函数>having,所以where条件里不能有聚合函数,因为where条件在 阅读全文
posted @ 2019-03-14 09:22 bokexiaoneng 阅读(253) 评论(0) 推荐(0) 编辑