select top 5 * from table1

解决方案 »

  1.   

    select top 5 * from table1 
    后边可以加个  order by ziduan
      

  2.   

    select top 5 * from tablename where..........................
    显示符合条件的最前面5条数据
      

  3.   

    select top 5 * from tablename order by 列 desc
      

  4.   

    那如果取中间的连续5个记录呢?例如 MYSQL 的  select * from table limit 3,5
      

  5.   

    select top 5 * from table where ziduan -----
      

  6.   

    set rowcount 5
    select * from youtable
      

  7.   

    那如果取中间的连续5个记录呢?例如 MYSQL 的  select * from table limit 3,5
      

  8.   

    不行,sql server记录没有序列概念