select a.ID,a.项目名称,a.金额 from (select ID,项目名称,金额,sum(金额) over(order by ID) 累加 from 表) a where a.累加<=100