to txjtxj:
是不是记录数不对,还是记录的排序方式不对,若记录数不对则换以下的语句:
select Top 16 *
from (select Top 25 * from TableName) as a
order by KeyId Desc
若是排序方式不满意,那你还是用这条语句:
select * from TableName
where KeyId in (select top 25 KeyId from TableName )
and KeyId not in (select top 9 KeyId from TableName )