SQL中与top对应的语句是?

2025-03-27 06:16:20
推荐回答(5个)
回答1:

你是想显示从大到小的话就是
select top 10 * from PE_Supply where SupplyType=1 order by 想要降序的字段desc
从小到大的话就是
select top 10 * from PE_Supply where SupplyType=1 order by 想要升序的字段

回答2:

可以倒序排列阿

顺序的top 10 是前10条
倒序的就是 后10条了

回答3:

正序 select * from 表名 where 条件 order by 排序字段 asc
倒序 select * from 表名 where 条件 order by 排序字段 desc

回答4:

select top 10 * from 表A order by 表A的字段 desc;

回答5:

什么?不是top吗?