Is order by clause allowed in a subquery

前端 未结 9 1518
离开以前
离开以前 2020-12-10 14:34

Is there any reason why or why not you should do an \'order by\' in a subquery?

9条回答
  •  隐瞒了意图╮
    2020-12-10 15:17

    You can do it, but I wouldn't usually unless you have a need.

    The optimiser will ignore it (or throw an error?)

    See "Intermediate materialisation" for some usages.

提交回复
热议问题