如题:sql读取 数据问题  
    查询前4条数据是   select top 4 * from table   假设结果是 1,2,3,4 
  现在我想查前4条数据后的5条数据   结果是 5,6,7,8,9   请问这样SQL语句怎么写呢???
  请哪位大侠帮个忙。十分谢谢。

解决方案 »

  1.   

    select top 5 * from table where 列名 >4
      

  2.   

    select top 5 * from table where id not in (select top 4 id from table)
    其中id须为自动增长的
      

  3.   

    http://www.cnblogs.com/biacbo/archive/2010/01/29/1659089.html
      

  4.   

    select top 5 * from table where [id] not in (select top 4 [id] from table)
      

  5.   

    select top 5 * from (select top 9 * from table order by id) order by id desc
      

  6.   

    select top 5 * from table order by id desc where id not in(select top 5 * from table order by id desc)
    id按照升序排列
      

  7.   

    取前9条数据,然后反序取top 5