专业版问题 求懂SQ的帮忙看下
1,333次浏览
编辑于2017年02月06日 10:44:01
专业版12.3新增核算项目 物料类别时提示的错误代码如下:
错误代码:3604(E14H)
Source :Microsoft OLE DB Provider for SQL Server
Detail :各表中的列名必须唯一。在表 't_ICItemCustom' 中多次指定了列名 'F_114'。
下面是我搜的代码 但是不知道怎么变更 求大神帮忙 变更下 ~~~~@@@@@@@@@@@谢谢啦
update d set d.fdetailcount=v.fcount
from t_ItemDetail d,
(select fdetailid,count(*) fcount from t_ItemDetailv where fitemid=-1 group byfdetailid ) v
where d.fdetailid=v.fdetailid
推荐阅读