当前位置: 代码迷 >> Sql Server >> 求 SELECT语句,该如何解决
  详细解决方案

求 SELECT语句,该如何解决

热度:75   发布时间:2016-04-27 16:05:27.0
求 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 )
  相关解决方案