oracle SQL 实现本条c字段等于上一条c字段加上a字段减去b字段
select (select c from table a where a.id =t.id-1) oldC+t.a-t.b from table t