读书人

求 SELECT语句,该如何解决

发布时间: 2012-01-23 21:57:28 作者: rapoo

求 SELECT语句
假设有表type 字段有name, count
我用select * from type order by count 查询出的数据如下:
name count
11 11
22 22
33 33
44 44
55 55
现在我要查询出的数据不显示最上面的一行 或者两行 怎么实现???




[解决办法]

or

select * from type
where name not in (select top 2 name from type order by name )

读书人网 >SQL Server

热点推荐