-
Notifications
You must be signed in to change notification settings - Fork 10
The LIMIT .. OFFSET Clause
Siim Kinks edited this page Mar 21, 2017
·
4 revisions
The LIMIT clause is used to limit the data amount returned by the SELECT statement and the OFFSET clause is used to return rows starting from the next row to the given value.
| SQL | SqliteMagic |
|---|---|
SELECT *
FROM AUTHOR
LIMIT 2
OFFSET 1; |
import static com.siimkinks.sqlitemagic.AuthorTable.AUTHOR;
List<Author> authors = Select
.from(AUTHOR)
.limit(2)
.offset(1)
.execute(); |