Skip to content

Commit 091a397

Browse files
authored
Merge pull request #455 from NilCent/patch-1
修改 select.sgml limit 字句 with ties 选项描述
2 parents 0a6dce9 + 47ef3df commit 091a397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgresql/doc/src/sgml/ref/select.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2866,7 +2866,7 @@ FETCH { FIRST | NEXT } [ <replaceable class="parameter">count</replaceable> ] {
28662866
在这种语法中,标准要求<replaceable class="parameter">start</replaceable>或<replaceable class="parameter">count</replaceable>是一个文本常量、一个参数或者一个变量名。
28672867
而作为一种<productname>PostgreSQL</productname>的扩展,还允许其他的表达式,但通常需要被封闭在圆括号中以避免歧义。
28682868
如果在一个<literal>FETCH</literal>子句中省略<replaceable class="parameter">count</replaceable>,它的默认值为 1。
2869-
<literal>WITH TIES</literal>选项用于根据<literal>ORDER BY</literal>子句返回与结果集中最后一个位置相关的任何附加行;<literal>ORDER BY</literal>在这种情况下是强制性的,并且<literal>SKIP LOCKED</literal>是不被允许的。
2869+
<literal>WITH TIES</literal>选项用于返回在结果集中根据<literal>ORDER BY</literal>子句排序后与最后一名并列的任何额外行;<literal>ORDER BY</literal>在这种情况下是强制性的,并且<literal>SKIP LOCKED</literal>是不被允许的。
28702870
<literal>ROW</literal>和<literal>ROWS</literal>以及<literal>FIRST</literal>和<literal>NEXT</literal>是噪声,它们不影响这些子句的效果。
28712871
根据标准,如果都存在,<literal>OFFSET</literal>子句必须出现在<literal>FETCH</literal>子句之前。
28722872
但是<productname>PostgreSQL</productname>更宽松,它允许两种顺序。

0 commit comments

Comments
 (0)