谁知道如何
取记录表中的前十条记录如何写SQL语句啊??

解决方案 »

  1.   

    select top 10 * from table
      

  2.   

    sql:select top 10 * from tablename
    oracle:select * from tablename where rownum<11
      

  3.   

    select top 10 * from table
      

  4.   

    select   top   10   *   from   table
      

  5.   

    sql:select   top   10   *   from   tablename 
      

  6.   

    select top 10 * from table
      

  7.   

    1楼正解
    select   top   10   *   from   table
      

  8.   

    2楼正解,MSSQL和ORACLE都可以!
      

  9.   

    楼主还没有说是什么数据库,大家都top了,呵呵
      

  10.   

    select   top   10   *   from   table
      

  11.   

    sql:select   top   10   *   from   tablename 
    oracle:select   *   from   tablename   where   rownum <11