Skip to content

Commit c23d62a

Browse files
committed
Documentation for limit and offset
1 parent 507338d commit c23d62a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/site/markdown/docs/select.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,11 @@ When using a column function (lower, upper, etc.), then is is customary to give
195195

196196
In this example the `substring` function is used in both the select list and the GROUP BY expression. In the ORDER BY expression, we use the `sortColumn` function to duplicate the alias given to the column in the select list.
197197

198+
## Limit and Offset Support
199+
Since version 1.1.1, the select statement supports limit and offset. You can specify:
200+
201+
- Limit only
202+
- Offset only
203+
- Both limit and offset
204+
205+
It is important to note that the select renderer writes limit and offset clauses into the generated select statement as is. The library does not attempt to normalize those values for databases that don't support limit and offset directly. Therefore, it is very important for users to understand whether or not the target database supports limit and offset. If the target database does not support limit and offset, then it is likely that using this support will create SQL that has runtime errors.

0 commit comments

Comments
 (0)