存货单据无法正常记帐,在数据库中发现有重复记录
- 浏览:781 - 发布时间:2008-01-08 00:00:00.0
问题版本: |
801-U8.51 |
问题模块: |
16-存货核算 |
所属行业: |
0-通用 |
问题状态: |
2-UU通注册用户 |
关 键 字: |
记帐 |
适用产品: |
851 |
补 丁 号: |
|
开放状态: |
0-UU通注册用户 |
原问题号: |
|
提交时间: |
2008-1-8 |
问题名称: |
存货单据无法正常记帐,在数据库中发现有重复记录 |
问题现象: |
在16系统中进行单据记帐时,发现单据无法正常记帐,在数据库中发现有重复记录,有几千条,以前好像有补丁,但打了所有?新补丁后,无法解决 |
原因分析: |
数据库问题 |
解决方案: |
删除存货总帐重复记录 declare @imonth as int set @imonth=0 while @imonth<13 begin delete ia_summary from ia_summary join (select cwhcode,cinvcode,imonth from ia_summary where imonth=@imonth group by cwhcode,cinvcode,imonth having count(*)>1) ia on ia_summary.cwh | |