固定资产卡片上的资产累计使用时间不正确,可用下语句修改。
因为是反月结过,已经在数据库存在错误,所以不管是打了PACK2,也是要执行语句
如果是PACK2,执行下面的语句
update gdzcmx set gdzcmx_sysj = ((2009-convert(int,(substring(gdzczy_rzrq,1,4))))*12-12)+(13-convert(int,(substring(gdzczy_rzrq,5,2))))+6
from gdzcmx,gdzczy where gdzczy_zcnm=gdzcmx_zcnm and gdzcmx_kjqj='07'
如果是PACK1,执行下面的语句
update gdzczy set gdzczy_sysj = ((2009-convert(int,(substring(gdzczy_rzrq,1,4))))*12-12)+(13-convert(int,(substring(gdzczy_rzrq,5,2))))+7
from gdzczy |