码迷,mamicode.com
首页 > 数据库 > 详细

Oracle中遇到的错误

时间:2017-04-27 10:16:13      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:from   -o   shu   函数   main   group   表达式   color   group by   

 

1. ORA-00937: 不是单组分组函数  和  不是group by表达式

--select count(corp_tn),state_code from t_oa_main where corp_tn=‘jiayuanshu‘ and oa_code=‘QJ_PT_0005_2017_3_0004‘ group by corp_tn; --不是group by表达式
--select count(corp_tn),state_code from t_oa_main where corp_tn=‘jiayuanshu‘ and oa_code=‘QJ_PT_0005_2017_3_0004‘ --ORA-00937: 不是单组分组函数
--select count(corp_tn),state_code from t_oa_main where corp_tn=‘jiayuanshu‘ and oa_code=‘QJ_PT_0005_2017_3_0004‘ group by state_code; --ok

  

2. 

Oracle中遇到的错误

标签:from   -o   shu   函数   main   group   表达式   color   group by   

原文地址:http://www.cnblogs.com/an5211/p/6772490.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!