cmd.CommandText = "UP DATE a s et a.制造费用_设备折旧 = b.本月折旧 / c.加工时间 * a.加工时间 from 工序跟踪表 as a inner join 资产折旧明细 as b on a.月份 = b.月份 and a.使用设备 = b.资产编号 and b.折旧类型 = '按设备算' inner join (S elect 月份,使用设备 sum(加工时间) as 加工时间 From 工序跟踪表 group by 月份,使用设备) as c on a.月份 = c.月份 and a.使用设备 = c.使用设备 "