oracle817 group by 简单问题

cslf 2006-08-02 10:26:08
服务端:os是hp,db是ora817

存在问题;
用odbc操作没问题。
用Provider=MSDAORA.1;Password=pwd;User ID=user;Data Source=yz;Persist Security Info=True

时rsopen时报不是分组函数。

sql:select a.billingmonth billingmonth,a.accountid accountid,sum(a.allfee) allfee,sum(s.balance) balance from bill a,account s where a.billingmonth=(select to_char(sysdate,'yyyymm') from dual) and a.accountid='8910000032909' and s.accountid=a.accountid and a.SUBSCRIBERID='8910000019122' group by a.billingmonth,a.accountid

conn是客户端游标。
...全文
185 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
cslf 2006-08-30
  • 打赏
  • 举报
回复
改用oci接口了。
cslf 2006-08-15
  • 打赏
  • 举报
回复
更正:
因为通过ole可以,odbc就不行。

ole 偶尔会连不上oracle。
cslf 2006-08-07
  • 打赏
  • 举报
回复
补充,bill 是view。
pigsanddogs 2006-08-04
  • 打赏
  • 举报
回复
gz
cslf 2006-08-04
  • 打赏
  • 举报
回复
应该不是语法问题。
因为通过odbc可以,ole就不行。
gaojupeng 2006-08-02
  • 打赏
  • 举报
回复
把用到的列全加到group by里去(除去聚组函数)

7,785

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧