物料盘点作业审核时报错提示dbo.T_DIN_StockCountDate中插入重复键
问题描述:
解决方案:
cloud中执行脚本
----盘点时间表修改主键
IF NOT EXISTS (SELECT 1 FROM SYSCONSTRAINTS CONST INNER JOIN SYSOBJECTS CONST_OBJ ON CONST.CONSTID = CONST_OBJ.ID WHERE CONST_OBJ.NAME = 'PK_StockCountDate_N') BEGIN DELETE FROM T_DIN_StockCountDate; ALTER TABLE T_DIN_StockCountDate DROP CONSTRAINT PK_StockCountDate; ALTER TABLE T_DIN_StockCountDate ALTER COLUMN FStockCountDate DATETIME NOT NULL; ALTER TABLE T_DIN_StockCountDate ADD CONSTRAINT PK_StockCountDate_N PRIMARY KEY CLUSTERED(FStockOrgID,FStockCountDate,FID); END GO
物料盘点作业审核时报错提示dbo.T_DIN_StockCountDate中插入重复键
问题描述:解决方案:cloud中执行脚本----盘点时间表修改主键 IF NOT EXISTS (SELECT 1 FROM SYSCONSTRAINTS CONST INNER JOIN S...
点击下载文档
本文2024-09-23 04:22:36发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-164907.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章