sql server数据库子查询不能单独使用order by(也可结合top使用)

sql server 子查询不允许使用order by。但是子查询添加了top即可(原因未分析)。

例:select * from (select top 1 * from xx order by xx.yy ) as a

相关链接:https://www.cnblogs.com/liuchenxing/p/8329487.html

猜你喜欢

转载自blog.csdn.net/swiftlinlei/article/details/79983461