evergrean100
Technical User
Can I use this LIMIT syntax in Oracle?
Code:
select * from TableOne LIMIT 0 , 100;
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
select * from TableOne LIMIT 0 , 100;
Select * from ( select rownum rn,somefield1, somefield2
from table
order by rn )
where rn between 15 and 90
If the above code simply does a [FormFeed] every 100 rows, then here is an Oracle method of generating a [FormFeed] character (i.e., chr(12)) every 100 rows:Evergrean said:Code:select * from TableOne LIMIT 0 , 100;
select t.*
decode(mod(rownum,100),0,chr(12)||' ') " "
from TableOne t;
Select * from ( select rownum rn,somefield1, somefield2
from table
order by rn )
where rn > " + currentRs + " and rn <= " + (currentRs + recordsPerPage);
asp said:Select * from ( select rownum rn,somefield1, somefield2
from table
order by rn )
where rn > 12 and rn <= (12 + 35)