宿遷金蝶軟件  
首 頁 解決方案 管理軟件 本地案例 金蝶服務 在線知識庫 市場活動 網上折扣店 在線留言 聯系我們
正文
金蝶KIS專業版憑證過賬提示“名稱或代碼在系統中已被使用"
Posterize Time:2012/12/3  Page Views: 1035 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.sunhexing184.com.cn版權所有 宿遷金蝶軟件有限公司 4008-830-730,金蝶K/3ERP、標準財務、倉庫管理、生產管理、成本管理、人事管理
国产大屁股喷水视频在线观看