Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JPQL: MySQL-like LIMIT-clause

843830Jun 18 2007
hi

i was wondering if i could possibly limit a JPQL result list in the way that it only contains a specified number of rows starting at a certain offset.

for example, in MySQL i could simply use LIMIT like this:
SELECT * FROM example ORDER BY c1 LIMIT 20, 10
and it would return 10 rows starting at 20th row instead of the whole realtion.

any help will be appreciated
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 16 2007
Added on Jun 18 2007
0 comments
489 views