摘要: 转自:https://www.cnblogs.com/vigarbuaa/archive/2012/06/25/2561225.html ORA-00979 不是 GROUP BY 表达式”这个错误,和我前面介绍的另外一个错误ORA-00937一样使很多初学oracle的人爱犯的。 我在介绍使用聚合 阅读全文
posted @ 2019-07-24 19:36 Sharpest 阅读(2226) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/yh_zeng2/article/details/83477880 一般常用的方法有两种,使用Sequence和使用SYS_GUID(); 方法一 使用序列号:创建序列号 create sequence SEQ_T_USERstart with 1i 阅读全文
posted @ 2019-07-24 19:35 Sharpest 阅读(1668) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/linjiqin/archive/2013/06/24/3152667.html with as语法–针对一个别名with tmp as (select * from tb_name) –针对多个别名with tmp as (select * f 阅读全文
posted @ 2019-07-24 19:34 Sharpest 阅读(943) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/hhhuang1991/article/details/79863806 阅读全文
posted @ 2019-07-24 19:33 Sharpest 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/pangblog/p/3402557.html oracle group by中rollup和cube的区别: Oracle的GROUP BY语句除了最基本的语法外,还支持ROLLUP和CUBE语句。CUBE ROLLUP 是用于统计数据的。 实 阅读全文
posted @ 2019-07-24 19:32 Sharpest 阅读(750) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/a36567/article/details/79521857 阅读全文
posted @ 2019-07-24 19:32 Sharpest 阅读(1741) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/xiaojianblogs/p/8047036.html 1.首先创建一个表 Sql代码 Sql代码 [sql] view plain copy create table TE ( ID VARCHAR2(2), T_CODE VARCHAR2( 阅读全文
posted @ 2019-07-24 19:31 Sharpest 阅读(1393) 评论(0) 推荐(0) 编辑