select count(id),sum(Price) from [T_AddPrice] as a where (select sum(Price) from [T_AddPrice] as b where a.id<=b.id)<1000 --order by id
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3