我都已经用nvl函数了,为何还是有ora-01400错误呢?
骨骨 2004-11-02 11:52:16 insert into /*+ append */ tab_test1 nologging
select a.subscription_id,a.account_id,a.customer_id,a.subs_status,a.acct_type,a.service_num,
a.service_type,a.service_status,a.rate_class,a.status_chg_date,a.active_date,a.create_date,a.region_id,
(select nvl(rele_office_id,'0') from tab_test3 where account_id=a.account_id) rele_office_id,
a.operator_id,a.reseller_id,
(select nvl(pay_type,0) from tab_test3 where account_id=a.account_id) pay_type,
a.last_oper_type,
(select nvl(county_id,0) from tab_test3 where account_id=a.account_id) county_id,
a.inactive_date
from tab_test2 a
ORA-01400: cannot insert NULL into ("OSS"."tab_test1"."RELE_OFFICE_ID")
请问这是什么原因?