Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oracle ORA-24347:使用PHP5.3.3的聚合函数中出现空列的警告_Oracle_Php 5.3 - Fatal编程技术网

Oracle ORA-24347:使用PHP5.3.3的聚合函数中出现空列的警告

Oracle ORA-24347:使用PHP5.3.3的聚合函数中出现空列的警告,oracle,php-5.3,Oracle,Php 5.3,问题陈述: 我在php5.3.3中得到以下错误。 ORA-24347:聚合函数中出现空列的警告。 同样的编码在php4上工作得很好。 我的oracle视图没有问题,但当我开始在php5.3.3中使用相同的视图时。它开始发出警告 查询: CREATE OR REPLACE FORCE VIEW "CUSTOMER_OA" ("CUST_ID", "CUSTOMER", "OPEN_CT", "EXPIRE_SOON_CT", "INVALID_EMAIL_CT") AS select

问题陈述: 我在php5.3.3中得到以下错误。 ORA-24347:聚合函数中出现空列的警告。 同样的编码在php4上工作得很好。 我的oracle视图没有问题,但当我开始在php5.3.3中使用相同的视图时。它开始发出警告

查询:

  CREATE OR REPLACE FORCE VIEW "CUSTOMER_OA" ("CUST_ID", "CUSTOMER", "OPEN_CT", "EXPIRE_SOON_CT", "INVALID_EMAIL_CT") AS 
    select c.cust_id, initcap(max(c.name)) AS customer,  null AS open_ct, null AS expire_soon_ct, count(unique invalid.contact_id) AS invalid_email_ct
    from customer c
    inner join apptype at
    using (apptype_id)
    left outer join (select cust_id, contact_id from cust1 where valid_email = 'N'
    union all
    select cust_id, contact_id from cust2 where valid_email = 'N'
    union all
    select cust_id, contact_id from cust3 where valid_email = 'N') invalid
    on (c.cust_id = invalid.cust_id)
    where at.app_type = '1' 
    group by c.cust_id
    order by customer;

您使用的是什么版本的Oracle?版本11.2.0.2.0您可以尝试以下操作:
MAX(nvl(c.name,'a'))
tested。仍然存在相同的问题,因此您可以测试此
计数(唯一nvl(无效。联系人id,'0'))
您使用的Oracle版本是什么?版本11.2.0.2.0您可以尝试以下操作:
MAX(nvl(c.name,'a'))
已测试。仍然存在相同的问题,所以您可以测试此
计数(唯一nvl(无效。联系人id,'0'))