Skip to content

Commit 244b856

Browse files
committed
翻译PG11 declare.sgml
1 parent 57051c1 commit 244b856

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

postgresql/doc/src/sgml/ref/declare.sgml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ doc/src/sgml/ref/declare.sgml
33
PostgreSQL documentation
44
-->
55

6-
<refentry id="SQL-DECLARE">
6+
<refentry id="sql-declare">
77
<!--==========================orignal english content==========================
88
<indexterm zone="sql-declare">
99
<primary>DECLARE</primary>
@@ -502,7 +502,8 @@ ____________________________________________________________________________-->
502502
and not use grouping or <literal>ORDER BY</>). Cursors
503503
that are not simply updatable might work, or might not, depending on plan
504504
choice details; so in the worst case, an application might work in testing
505-
and then fail in production.
505+
and then fail in production. If <literal>FOR UPDATE</literal> is
506+
specified, the cursor is guaranteed to be updatable.
506507
</para>
507508
____________________________________________________________________________-->
508509
<para>
@@ -511,7 +512,8 @@ ____________________________________________________________________________-->
511512
<literal>WHERE CURRENT OF</literal>可能会失败(特别地,该游标必须只引用一个
512513
表并且没有使用分组或者<literal>ORDER BY</literal>)。不是简单可更新的游标可能
513514
成功也可能不成功,这取决于计划选择的细节。因此在最坏的情况下,应用可能会
514-
在测试时成功但是在生产中失败。
515+
在测试时成功但是在生产中失败。如果指定了<literal>FOR UPDATE</literal>,
516+
则保证游标是可更新的。
515517
</para>
516518

517519
<!--==========================orignal english content==========================

0 commit comments

Comments
 (0)