上传本店数据失败,处理数据错误:汇总数据错误(第 1 行错误,违反了 PRIMARY KEY 约束 'PK_t_check_finish'。不能在对象 'dbo.t_check_finish' 中插入重复键。语法:delete a from #t_check_init a where exists (select * from t_check_init b where b.check_no = a.check_no)
delete a from #t_check_finish a where not exists (select * from #t_check_init b where b.check_no = a.check_no)
delete a from #t_check_type a where not exists (select * from #t_check_init b where b.check_no = a.check_no)
insert into t_check_init(check_no,branch_no,pd_type,is_ontime,pd_IsSample,pd_random,pd_debar_time,check_status,user_id,app_sign,app_user,oper_date,end_date,memo,create_branch,update_flow,update_time,update_branch,trans_upflag,pd_NotOccur) select check_no,branch_no,pd_type,is_ontime,pd_IsSample,pd_random,pd_debar_time,check_status,user_id,app_sign,app_user,oper_date,end_date,memo,create_branch,update_flow,update_time,update_branch,trans_upflag,pd_NotOccur from #t_check_init
insert into t_check_finish(check_no,item_no,branch_no,change_flag,stock_qty,inout_qty,real_qty,cost_price,sale_)
处理数据错误:汇总数据错误
- 提问者: 许昌德宜来
- 等级:普通会员
- 时间:2021-05-12 07:39
- 悬赏:0
- 解决时间:2021-05-22 07:39
回答 共 1 条
你好,可以先检查一下分部和总部的数据库,看下是否损坏
如果没有损坏,就需要加技术部的qq:4008315218,发数据过来检查
如果没有损坏,就需要加技术部的qq:4008315218,发数据过来检查
- 回答者:赢通技术4
- 等级:钻石会员
- 时间:2021-05-12 17:47
快到期问题