你的问题是什么,好象没提啊,我只好猜了。
把 from 返款分摊表 去掉或者写成
from 返款分摊表 inner join D01_MonthReport on 返款分摊表.返款单编号='HP0208' and 返款分摊表.年度*100+返款分摊表.月份=D01_MonthReport.D01_YearMon and 返款分摊表.分公司=D01_MonthReport.D01_Branch
表名建议取个别名。

解决方案 »

  1.   

    update ...from ...为何意?
      

  2.   

    我的问题是:
    update语句的错误原因及解决方法!!!!
    错误在:“D01_MonthReport.D01_Fld0104-返款分摊表.金额 from 返款分摊表”中
      

  3.   

    试试这样:
    update D01_MonthReport set D01_Fld0104= D01_MonthReport.D01_Fld0104-返款分摊表.金额 where 返款分摊表.返款单编号='HP0208' and 返款分摊表.年度*100+返款分摊表.月份=D01_MonthReport.D01_YearMon and 返款分摊表.分公司=D01_MonthReport.D01_Branch或者写成:
    update D01_MonthReport set D01_Fld0104= D01_MonthReport.D01_Fld0104-返款分摊表.金额 from 返款分摊表 inner join D01_MonthReport on 返款分摊表.返款单编号='HP0208' and 返款分摊表.年度*100+返款分摊表.月份=D01_MonthReport.D01_YearMon and 返款分摊表.分公司=D01_MonthReport.D01_Branch