代码语言:sql复制
一种:
select * from (
select top 20 * from(
select top 80 * from(
select a.* from business.dbo.tb_cocacola_mms as a
where a.checkTag=1
)
as x order by x.updateTime desc)
as y order by y.updateTime asc)
as z order by z.updateTime desc
其中desc,asc之类的可以根据实际情况
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/100636.html原文链接: