select top 20 * from (select top 3 * from [T_News] order by ID asc) order by ID desc sql语句问题

2025-01-24 07:18:03
推荐回答(2个)
回答1:

为子查询起一个别名就好了
select top 20 * from (select top 3 * from [T_News] order by ID asc) a order by a.ID desc

回答2:

没有表名 select top 20 * from 跟表名