目录 0 需求分析 1 数据准备 2 数据分析 3 小 结 0 需求分析 问题: table1(id:自增id,money:费用)问题:按id顺序累加money,取出累计值与1000相差绝对值最小差值的id。 表如下: id money 1 100 2