oracle表达式之“ora-0079”不是group by表达式分析(未完待续。。。)
来源:互联网 发布:网络编辑培训 编辑:程序博客网 时间:2024/06/06 05:33
with tab as (select t.object_pid, t.mesh, round(x, 8) x, round(y, 8) y, round(z, 3) z, id from had_object_box_pole t, table(sdo_util.GetVertices(t.geometry)) g),tab1 as (select t.object_pid, t.mesh, t.x, t.y, t.z, t.id, count(*) over(partition by t.object_pid, t.x, t.y, t.z) num, row_number() over(partition by t.object_pid, t.x, t.y, t.z order by t.id) sq from tab t where t.id > 1),tab2 as (select t.object_pid, t.mesh, t.x, t.y, t.z, t.id, t.num, t.sq, (t.x || ',' || t.y || ',' || t.z) str from tab1 t where num > 1),tab3 as (select object_pid, t.id, mesh, substr(sys_connect_by_path(str,'|'),2) strVal, wm_concat(t.id) strid from tab2 t where connect_by_isleaf = 1 start with sq = 1 connect by sq = PRIOR sq + 1 and object_pid = PRIOR object_pid and sq < =(select max(sq) from tab2) group by object_pid,t.id,mesh)select * from tab3 t3在进行数据库操作时,进行tab3的选取时出现如题的错误,起初按照网上说的在select 列表项中出现的列必须出现在group by后面(聚合函数除外),但是不能正确,找到的替代件决办法还是采用substr(sys_connect_by_path)将id进行拼串。但是这个问题解决不了是心中的一块结啊。
阅读全文
0 0
- oracle表达式之“ora-0079”不是group by表达式分析(未完待续。。。)
- Oracle 之 “ORA-00979:不是GROUP BY 表达式”
- Oracle 之 “ORA-00979:不是GROUP BY 表达式”
- 在oracle里报错:ORA-00979: 不是 GROUP BY 表达式
- 关于Oracle报错ORA-00979不是GROUP BY表达式
- oracle 不是group by表达式
- ORA-00979 不是group by 表达式 .
- ORA-00979 不是 GROUP BY 表达式”
- [Err] ORA-00979: 不是 GROUP BY 表达式
- sql:ORA-00979:不是GROUP BY 表达式
- ORA-00979:不是GROUP BY表达式
- ORA-00979 不是GROUP BY表达式
- oracle报错:不是GROUP BY 表达式
- 关于ORA-00979 不是 GROUP BY 表达式错误的解释
- 关于ORA-00979 不是 GROUP BY 表达式错误的解释
- 关于ORA-00979 不是 GROUP BY 表达式错误的解释
- 关于ORA-00979 不是 GROUP BY 表达式错误的解释
- 关于ORA-00979 不是 GROUP BY 表达式错误的解释
- springmvc参数校验:@NotEmpty、@NotBlank和@NotNull
- 邝斌的ACM模板(树链剖分)
- 整理的关于DOM的表格(一)
- Android点击EditText文本框之外任何地方隐藏键盘的解决办法
- android studio中svn的使用(关联svn、svn提交代码,分支管理等)
- oracle表达式之“ora-0079”不是group by表达式分析(未完待续。。。)
- Nodejs进阶:服务端字符编解码&乱码处理
- LIBSVM的使用方法
- mysql事件
- 验证程序运行次数的小程序
- fgets()函数和fputs函数
- wget命令与curl命令
- Java内部类详解
- 我为什么“放弃”从事八年的嵌入式领域