K3wise预付单 删除分录行保存报错! 违反了PRIMARY KEY 约束”PK_t_rp_ARBillOfSH“。不能在对象”dbo.t_rp_ARBillOfSH“中插入重复键。重复键值为(1540,4,0,0)
金蝶提示:违反了PRIMARY KEY 约束”PK_t_rp_ARBillOfSH“。不能在对象”dbo.t_rp_ARBillOfSH“中插入重复键。重复键值为(1540,4,0,0)
解决方法:
执行sql:
EXECUTE p_IC_MaintainPK @newpkname = ‘PK_t_rp_ARBillOfSH’,
@tablename = ‘t_rp_ARBillOfSH’,
@FieldName = ‘FBillID,FEntryID,FID_SRC,FEntryID_SRC’,
@IsClustered=1
GO