重点函数

函数
转换函数
to_date('','')
to_char(sysdate,'yyyy')
聚合函数
max() min() sum() avg() count()
分组
select 分组字段,聚合函数 from 表名 group by 字段

注意:聚合函数
过滤不满足条件的分组
having
>顺序原则
select from 表名
where
group by
having
order by
》select nvl(comm,0) from emp; 为null赋值
》decode 条件判断
select decode(字段,取值,显示值) from 表名
》case when then end

原文地址:https://www.cnblogs.com/longmo666/p/13557129.html