You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/site/es/xdoc/statement-builders.xml
+42-6Lines changed: 42 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -297,7 +297,8 @@ public String updatePersonSql() {
297
297
</td>
298
298
<td>
299
299
Appends a <code>LIMIT</code> clause.
300
-
This method valid when use together with SELECT(), UPDATE() and DELETE(). (Available since 3.5.2)
300
+
This method valid when use together with SELECT(), UPDATE() and DELETE().
301
+
And this method is designed to use together with OFFSET() when use SELECT(). (Available since 3.5.2)
301
302
</td>
302
303
</tr>
303
304
<tr>
@@ -313,7 +314,42 @@ public String updatePersonSql() {
313
314
</td>
314
315
<td>
315
316
Appends a <code>OFFSET</code> clause.
316
-
This method valid when use together with SELECT(). (Available since 3.5.2)
317
+
This method valid when use together with SELECT().
318
+
And this method is designed to use together with LIMIT(). (Available since 3.5.2)
319
+
</td>
320
+
</tr>
321
+
<tr>
322
+
<td>
323
+
<ul>
324
+
<li>
325
+
<code>OFFSET_ROWS(String)</code>
326
+
</li>
327
+
<li>
328
+
<code>OFFSET_ROWS(long)</code>
329
+
</li>
330
+
</ul>
331
+
</td>
332
+
<td>
333
+
Appends a <code>OFFSET n ROWS</code> clause.
334
+
This method valid when use together with SELECT().
335
+
And this method is designed to use together with FETCH_FIRST_ROWS_ONLY(). (Available since 3.5.2)
336
+
</td>
337
+
</tr>
338
+
<tr>
339
+
<td>
340
+
<ul>
341
+
<li>
342
+
<code>FETCH_FIRST_ROWS_ONLY(String)</code>
343
+
</li>
344
+
<li>
345
+
<code>FETCH_FIRST_ROWS_ONLY(int)</code>
346
+
</li>
347
+
</ul>
348
+
</td>
349
+
<td>
350
+
Appends a <code>FETCH FIRST n ROWS ONLY</code> clause.
351
+
This method valid when use together with SELECT().
352
+
And this method is designed to use together with OFFSET_ROWS(). (Available since 3.5.2)
317
353
</td>
318
354
</tr>
319
355
<tr>
@@ -378,10 +414,10 @@ public String updatePersonSql() {
378
414
379
415
<p>
380
416
<spanclass="label important">NOTE</span>
381
-
It is important to note that SQL class writes <code>LIMIT</code> and <code>OFFSET</code> clauses into the generated statement as is.
382
-
In other words, the library does not attempt to normalize those values for databases that don’t support <code>LIMIT</code> and <code>OFFSET</code> directly.
383
-
Therefore, it is very important for users to understand whether or not the target database supports <code>LIMIT</code> and <code>OFFSET</code>.
384
-
If the target database does not support <code>LIMIT</code> and <code>OFFSET</code>, then it is likely that using this support will create SQL that has runtime errors.
417
+
It is important to note that SQL class writes <code>LIMIT</code>, <code>OFFSET</code>, <code>OFFSET n ROWS</code> and <code>FETCH FIRST n ROWS ONLY</code> clauses into the generated statement as is.
418
+
In other words, the library does not attempt to normalize those values for databases that don’t support these clauses directly.
419
+
Therefore, it is very important for users to understand whether or not the target database supports these clauses.
420
+
If the target database does not support these clauses, then it is likely that using this support will create SQL that has runtime errors.
385
421
</p>
386
422
387
423
<p>Since version 3.4.2, you can use variable-length arguments as follows:</p>
0 commit comments