It does not work.......
I have tried the first example...
SELECT * FROM table WHERE ROWNUM > 0 AND ROWNUM < 100
It is ok when we start at 0 ... like above but when it looks for example like this:
SELECT * FROM table WHERE ROWNUM > 100 AND ROWNUM < 200
It does not return ANYTHING.... and I know that there are a lot of records in that database..... because
SELECT * FROM table
returns me all records...
=================================
As for the second post.....
select from (
select <b>,</b>rownum row_num from (
select name from workers where id > 0 order by id
)
) where row_num between $min and $max
I have such error:
<b>ORA-00923: FROM keyword not found where expected</b>
when I use:
select * from (
select rownum row_num from (
select name from workers where id > 0 order by id
)
) where row_num between $min and $max
I GOT THE RECORDS ... but they are only the ROWNUMBERS... so they are useless.....
Still trying to solve this problem................
Anyone have an Idea???
I'm using ORACLE 8.1.7