ORA-00937: not a single-group group function说明及解决方法(E文)
来源:互联网 发布:淘宝店铺招牌图片制作 编辑:程序博客网 时间:2024/06/11 17:01
A SELECT list cannot include both a group function, such as AVG, COUNT, MAX, MIN, SUM, STDDEV, or VARIANCE, and an individual column expression, unless the individual column expression is included in a GROUP BY clause.
Drop either the group function or the individual column expression from the SELECT list or add a GROUP BY clause that includes all individual column expressions listed.
eg:
SQL> select owner, count(*)
2 from dba_segments;
select owner, count(*)
*
ERROR at line 1:
ORA-00937: not a single-group group function
Because we have a group function (COUNT) in our column list, and an additional column (OWNER), we have to include the GROUP BY clause in our select statement.
SQL> select owner, count(*)
2 from dba_segments
3 group by owner;
OWNER COUNT(*)
------------------------------ ----------
USER1 166
USER2 166
- ORA-00937: not a single-group group function说明及解决方法(E文)
- ORA-00937: not a single-group group function说明及解决方法(E文)
- “not a single-group group function”
- oracle报错: “not a single-group group function”
- ORA-00979: not a GROUP BY expression
- ORA-00979: not a GROUP BY expression报错处理
- [Err] ORA-00979: not a GROUP BY expression
- Structure of a Function Group
- Function Group
- HAVING Clause Without a Group Function
- System.Data.OracleClient.OracleException: ORA-00979: not a GROUP BY expression
- Access Denied: Specified user is not is not a member of TelnetClients group解决方法
- TypeError: e[h] is not a function
- e.slice is not a function
- group
- group
- Group
- Group
- Event 事件和托管
- c#中delegate和event之间的区别
- Flex + LCDS + Java 连接成功~
- 有一种爱,经不起等待
- MATLAB绘图
- ORA-00937: not a single-group group function说明及解决方法(E文)
- nameSpace 使用
- 关于我的JAVA
- minigui V1.6.10 + tslib 触摸屏较正完美解决方案
- php中session处理的定制
- magento学习笔记之一
- 关于VB的函数dir和Api函数FindFirstFile和FindNextFile
- Microsoft 群集服务 (MSCS) 简介
- 生日2