select * from tablename where rownum <= 5;

解决方案 »

  1.   

    用隐藏字段rownum
    就象楼上的一样,
      

  2.   

    select id from (select id from yourtable order by id desc) where rownum < 6
      

  3.   

    select column from (select rownum,column from table order by column asc) where rownum <= N
      

  4.   

    select * from yourtable where rownum<10
    minus
    select * from yourtable where rownum<9
    /
    这样你就可以取到一条数据了!
      

  5.   

    http://expert.csdn.net/Expert/topic/1493/1493959.xml?temp=.1526453好象问这个问题的人很多,呵呵