宿迁金蝶软件  
首 页 解决方案 管理软件 本地案例 金蝶服务 在线知识库 市场活动 网上折扣店 在线留言 联系我们
正文
金蝶KIS专业版凭证过账提示“名称或代码在系统中已被使用"
Posterize Time:2012/12/3  Page Views: 1081 order
 

金蝶KIS专业版凭证过账提示“名称或代码在系统中已被使用"

 

方法一:
exec sp_cleanitemdetailv
go
update a set a.fdetailcount=b.Fcount
from t_itemdetail a join (select Fdetailid,count(*) as Fcount from t_itemdetailv
where fitemid=-1 group by Fdetailid) b
on a.fdetailid=b.fdetailid where a.fdetailcount<>b.Fcount
go

 

方法二:

update d set d.fdetailcount=v.fcount
from t_ItemDetail d,
(select fdetailid,count(*) fcount from t_ItemDetailv where fitemid=-1 group by fdetailid ) v
where d.fdetailid=v.fdetailid
go

方法三:(已测试过)
update d set d.fdetailcount=v.fcount
from t_ItemDetail d,
(select fdetailid,count(*) fcount from t_ItemDetailv where fitemid=-1 group by fdetailid ) v
where d.fdetailid=v.fdetailid



 
[ 关闭CLOSE ]   [ 打印PRINT ]    上一篇     下一篇
 
www.sqkingdee.cn版权所有 宿迁金蝶软件有限公司 4008-830-730,金蝶K/3ERP、标准财务、仓库管理、生产管理、成本管理、人事管理