这个分页sql的完整的执行顺序是什么样的??
SELECTtop(5)addTimeFROMtablewhereIsDel=0andaddTime<getdate()and[addTime]<(selectMIN([...
SELECT top (5) addTime FROM table
where IsDel=0 and addTime<getdate() and [addTime]<
(select MIN([addTime]) from (select top ((46-1) * 5) [addTime]
from table where IsDel=0 and addTime<getdate()
order by [addTime] desc)as t) order by [addTime] desc
最好有详细的执行顺序 执行计划 谢谢 展开
where IsDel=0 and addTime<getdate() and [addTime]<
(select MIN([addTime]) from (select top ((46-1) * 5) [addTime]
from table where IsDel=0 and addTime<getdate()
order by [addTime] desc)as t) order by [addTime] desc
最好有详细的执行顺序 执行计划 谢谢 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询