File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
postgresql/doc/src/sgml/ref Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ doc/src/sgml/ref/declare.sgml
3
3
PostgreSQL documentation
4
4
-->
5
5
6
- <refentry id="SQL-DECLARE ">
6
+ <refentry id="sql-declare ">
7
7
<!--==========================orignal english content==========================
8
8
<indexterm zone="sql-declare">
9
9
<primary>DECLARE</primary>
@@ -502,7 +502,8 @@ ____________________________________________________________________________-->
502
502
and not use grouping or <literal>ORDER BY</>). Cursors
503
503
that are not simply updatable might work, or might not, depending on plan
504
504
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.
506
507
</para>
507
508
____________________________________________________________________________-->
508
509
<para>
@@ -511,7 +512,8 @@ ____________________________________________________________________________-->
511
512
<literal>WHERE CURRENT OF</literal>可能会失败(特别地,该游标必须只引用一个
512
513
表并且没有使用分组或者<literal>ORDER BY</literal>)。不是简单可更新的游标可能
513
514
成功也可能不成功,这取决于计划选择的细节。因此在最坏的情况下,应用可能会
514
- 在测试时成功但是在生产中失败。
515
+ 在测试时成功但是在生产中失败。如果指定了<literal>FOR UPDATE</literal>,
516
+ 则保证游标是可更新的。
515
517
</para>
516
518
517
519
<!--==========================orignal english content==========================
You can’t perform that action at this time.
0 commit comments