我原来写的如下有报错 
update table1 set 金额=金额+a.余额 
from table1 a 
where 日期=今天 and a.日期=昨天