mysql|oracle
oracle不支持类似于 mysql 中的 limit. 但你还是可以rownum来限制返回的结果集的行数.
如果你只希望返回前十行纪录,你可以这样写:
select * from table where rownum
但是下面的语句是不对的:
select * from table where rownum>90 and rownum
这是因为 oracle 认为这个条件不成立,所以没有返回。
你应该这样写:
select * from table where rownumminus
select * from table where rownum