Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> single-group function and bind variables
I am using the Oracle OLEDB driver from VB and have difficulties with
aggregate functions in conjunction with bind variables. Does anyone
know whether this is a bug?
select sum(sal) from emp where ename = 'SCOTT'
==> OK
select sum(sal) from emp where ename = :my_ename
==> ORA-00937: not a single-group group function
Both statements are fine in SQL*Plus but fail through OLEDB. Received on Thu May 23 2002 - 07:03:37 CDT