select top(8) * from xyxx where xybh not in 
(select top (72) xybh from xyxx order by xybh) order by xybh asc这个分页语句哪儿出错了,请各位指点,多谢

解决方案 »

  1.   

    因为这里是oracle,不是sql server,所以...
      

  2.   

    --这是oracle 你写的是mssql的
    select * 
    from (select a.*,row_number() over(order by xybh) rn from xyxx a)
    where rn between 73 and 80
      

  3.   


    select *
    from (select a.*,rownum rn from (select * from xyxx order by xybh) a)
    where rn between 73 and 80
      

  4.   

    春哥,你跑错地方了吧? oracle 没有top的哦
      

  5.   

    就算信春哥 也不能把oracle当sql server用啊
    wkc168  做了给你