Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud
this week in the
Cloud/Virtualization
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
JDBC and Relational Databases
Using oracle Rownum with between keyword
Ravi Kiran Va
Ranch Hand
Posts: 2234
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi ,
I am planning to use
JDBC
Pagination with Oracle (Query based technique ) No caching of results .
When i tried to use rownum with between Option , it didn't gave me any results
select * from mytable where rownum between 10 and 20;
But this gave me results .
select * from mytable where rownum < 20;
Please tel me How to solve this ??
Save India From Corruption - Anna Hazare.
Shinil Mohan
Ranch Hand
Posts: 37
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can use a nested select to solve this issue. Something like below query
SELECT a, b, c FROM (SELECT rownum rn, a, b, c FROM mytable) WHERE rn BETWEEN 10 AND 20;
Ravi Kiran Va
Ranch Hand
Posts: 2234
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thank you very much Mohan .
Save India From Corruption - Anna Hazare.
Shinil Mohan
Ranch Hand
Posts: 37
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You are welcome
..
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Query to fetch 100 records in 1000
Get Updated Record
Pagination Query in Oracle
Selecting random rows
sqlserver select where rownum between
More...