怎么一句sql实现以下功能, select id from Table1 where sum(value)<200 order by id desc 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select top 1 idfrom table1 awhere (select sum(value) from table1 where id<=a.id)<=50 --or 200order by id desc select max(id)from table1 awhere (select sum(value) from table1 where id<=a.id)<50 请问动态SQL一般在什么时候使用? Asp.net程序连接Sqlserver2005出现以下问题 关于时间类型字段的问题 各位高手,难题求救!!! 表对比复制问题 重复数据检测的问题 查询 行转列问题,多行转为固定列数的 下边的存储过程如何实现??!! 链接数据库问题~ 改动“风云”发布的分布存储过程后出错!!! 如何可以降低备份文件的空间占用?
from table1 a
where (select sum(value) from table1 where id<=a.id)<=50 --or 200
order by id desc
from table1 a
where (select sum(value) from table1 where id<=a.id)<50