这是数据库问题,看你有没有安装独立数据库,安装了独立数据的就在查询分析器里执行以下代码,没有安装需要把以下的代码复制到文本文档,然后重命名为
后缀名 .SQL 的文件,然后打开
账套管理--操作---执行代码 ,文件--打开文件 打开刚才那个SQL文件,点击执行(绿色箭头按钮),出现执行成功就可以了,希望能帮到你
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