当前位置: 移动技术网 > IT编程>数据库>Oracle > Oracle中函数关键字简介

Oracle中函数关键字简介

2019年05月23日  | 移动技术网IT编程  | 我要评论

常用的语法:select--from--where--group by--having--order by 

1、分组子句group by +con 按什么分组

2、having子句  对上面分组的数据进行再次条件过滤

3、排序子句 order by 

order by  + con asc  升序   order by  + con desc j降序   

select  con1 ,con2 from ......+ order by  1  按con1排序/+ order by  2  按con2排序

当一个查询语句同时出现了where,group by,having,order by的时候,执行顺序和编写顺序是: 

from -> where  ->group by ->having ->select ->order by

常用函数:

1、统计类函数 count()  sum() avg()

2、分析函数  

over(partition by xxx porder by yyy rows )

3、other: nvl()  、listagg()  行转列。。。

编不出来了 ,下次再来

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网