熙蚨 2017-08-24 06:18 采纳率: 0%
浏览 785

select top 15 * from “3层嵌套有什么作用”?

select top 15 * from (select top 15 * from (select top 15 * from MenuInfo where 1=1 order by OrderIndex Asc,ID Asc) tp1 order by OrderIndex Desc,ID Desc) tp2 order by OrderIndex Asc,ID Asc

这样的3层嵌套有什么作用

  • 写回答

2条回答 默认 最新

  • 陆兵 2017-08-24 06:36
    关注

    效率高吧,但是,数据少的时候可能不是很明显,数据多的时候很明显了。

    评论

报告相同问题?