产生原因:子表的外键值在父表的主键值中不存在,
解决方法:在父表中加上子表中不存在的外键值
查询不存在的外键值:
select t.provider_code from hsps.tra_para t where not exists (select 1 from t_smprovider t1 where t.provider_code=t1.provider_code)
产生原因:子表的外键值在父表的主键值中不存在,
解决方法:在父表中加上子表中不存在的外键值
查询不存在的外键值:
select t.provider_code from hsps.tra_para t where not exists (select 1 from t_smprovider t1 where t.provider_code=t1.provider_code)