如何取一个表中的前20条记录SQLSERVER如何?
ORACLE中呢?

解决方案 »

  1.   

    select top 10 from tablename;
      

  2.   

    只能管一次用.下次不可能保证还是原来的数据. 在select 中加入top 20.看看书
      

  3.   

    select top 10 from tablename order by xxx desc
    每次就取到一样的了。
      

  4.   

    select top 20 with ties *
    from table
      

  5.   

    select top 20 with ties *
    from table
      

  6.   

    oracle :select * from table where rownum<11
      

  7.   

    select top 10 from tablename;