可能是:字段
T_idleness_register表中C_attestation 中有NULL 值。你用这个试试:
select count(c.C_attestation ) from ac01 a,jc10 b,T_idleness_register c where b.aae116='1' and c.c_no=a.aac001 and c.c_no=b.aac001 and c.C_attestation='200611'---------------------------------------------
请到我 csdn 的 blog 做客
http://blog.csdn.net/whqcfp/
T_idleness_register表中C_attestation 中有NULL 值。你用这个试试:
select count(c.C_attestation ) from ac01 a,jc10 b,T_idleness_register c where b.aae116='1' and c.c_no=a.aac001 and c.c_no=b.aac001 and c.C_attestation='200611'---------------------------------------------
请到我 csdn 的 blog 做客
http://blog.csdn.net/whqcfp/
请到我 csdn 的 blog 做客
http://blog.csdn.net/whqcfp/
c.c_no=a.aac001 这个不是么?
关联的不正确所致。我想主要有以下几方面:
第一:关联的条件是不是正确
第二:Where 中的字段是不是空值,或异常的数据,使的关联出现异常http://blog.csdn.net/whqcfp/archive/2006/11/10/1378065.aspx 是我碰到的。
---------------------------------------------
请到我 csdn 的 blog 做客
http://blog.csdn.net/whqcfp/
aac001:c_no是1:N的关系