@@ -46,7 +46,7 @@ UPDATE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ] [
46
46
( <replaceable class="parameter">column_name</replaceable> [, ...] ) = [ ROW ] ( { <replaceable class="parameter">expression</replaceable> | DEFAULT } [, ...] ) |
47
47
( <replaceable class="parameter">column_name</replaceable> [, ...] ) = ( <replaceable class="parameter">sub-SELECT</replaceable> )
48
48
} [, ...]
49
- [ FROM <replaceable class="parameter">from_list </replaceable> ]
49
+ [ FROM <replaceable class="parameter">from_item </replaceable> [, ...] ]
50
50
[ WHERE <replaceable class="parameter">condition</replaceable> | WHERE CURRENT OF <replaceable class="parameter">cursor_name</replaceable> ]
51
51
[ RETURNING * | <replaceable class="parameter">output_expression</replaceable> [ [ AS ] <replaceable class="parameter">output_name</replaceable> ] [, ...] ]
52
52
</synopsis>
@@ -58,7 +58,7 @@ UPDATE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ] [
58
58
( <replaceable class="parameter">column_name</replaceable> [, ...] ) = [ ROW ] ( { <replaceable class="parameter">expression</replaceable> | DEFAULT } [, ...] ) |
59
59
( <replaceable class="parameter">column_name</replaceable> [, ...] ) = ( <replaceable class="parameter">sub-SELECT</replaceable> )
60
60
} [, ...]
61
- [ FROM <replaceable class="parameter">from_list </replaceable> ]
61
+ [ FROM <replaceable class="parameter">from_item </replaceable> [, ...] ]
62
62
[ WHERE <replaceable class="parameter">condition</replaceable> | WHERE CURRENT OF <replaceable class="parameter">cursor_name</replaceable> ]
63
63
[ RETURNING * | <replaceable class="parameter">output_expression</replaceable> [ [ AS ] <replaceable class="parameter">output_name</replaceable> ] [, ...] ]
64
64
</synopsis>
@@ -268,13 +268,17 @@ ____________________________________________________________________________-->
268
268
<listitem>
269
269
<!--==========================orignal english content==========================
270
270
<para>
271
- Set the column to its default value (which will be NULL if no
272
- specific default expression has been assigned to it).
271
+ Set the column to its default value (which will be NULL if no specific
272
+ default expression has been assigned to it). An identity column will be
273
+ set to a new value generated by the associated sequence. For a
274
+ generated column, specifying this is permitted but merely specifies the
275
+ normal behavior of computing the column from its generation expression.
273
276
</para>
274
277
____________________________________________________________________________-->
275
278
<para>
276
279
将该列设置为它的默认值(如果没有为它指定默认值表达式,默认值
277
- 将会为 NULL)。
280
+ 将会为 NULL)。标识列将设置为关联序列生成的新值。
281
+ 对于生成的列,允许指定此项,但仅指定从其生成表达式计算列的正常行为。
278
282
</para>
279
283
</listitem>
280
284
</varlistentry>
@@ -307,29 +311,28 @@ ____________________________________________________________________________-->
307
311
308
312
<varlistentry>
309
313
<!--==========================orignal english content==========================
310
- <term><replaceable class="parameter">from_list </replaceable></term>
314
+ <term><replaceable class="parameter">from_item </replaceable></term>
311
315
____________________________________________________________________________-->
312
- <term><replaceable class="parameter">from_list </replaceable></term>
316
+ <term><replaceable class="parameter">from_item </replaceable></term>
313
317
<listitem>
314
318
<!--==========================orignal english content==========================
315
319
<para>
316
- A list of table expressions, allowing columns from other tables
317
- to appear in the <literal>WHERE</literal> condition and the update
318
- expressions. This is similar to the list of tables that can be
319
- specified in the <xref linkend="sql-from"
320
- endterm="sql-from-title"/> of a <command>SELECT</command>
321
- statement. Note that the target table must not appear in the
322
- <replaceable>from_list</replaceable>, unless you intend a self-join (in which
323
- case it must appear with an alias in the <replaceable>from_list</replaceable>).
320
+ A table expression allowing columns from other tables to appear in
321
+ the <literal>WHERE</literal> condition and update expressions. This
322
+ uses the same syntax as the <link
323
+ linkend="sql-from"><literal>FROM</literal></link> clause of
324
+ a <command>SELECT</command> statement;
325
+ for example, an alias for the table name can be specified. Do not
326
+ repeat the target table as a <replaceable>from_item</replaceable>
327
+ unless you intend a self-join (in which case it must appear with
328
+ an alias in the <replaceable>from_item</replaceable>).
324
329
</para>
325
330
____________________________________________________________________________-->
326
331
<para>
327
- 表表达式的列表,允许来自其他表的列出现在<literal>WHERE</literal>
328
- 条件和更新表达式中。这类似于可以在
329
- <command>SELECT</command>语句的<xref linkend="sql-from"
330
- endterm="sql-from-title"/>中指定的表列表。注意目标表不能出现在
331
- <replaceable>from_list</replaceable>中,除非你想做自连接(这种情况下它必须
332
- 以别名出现在<replaceable>from_list</replaceable>中)。
332
+ 表表达式允许来自其他表的列出现在<literal>WHERE</literal>条件和更新表达式中。这使用与
333
+ <command>SELECT</command>语句的<link linkend="sql-from"><literal>FROM</literal></link>
334
+ 子句相同的语法;例如,可以指定表名的别名。不要将目标表作为<replaceable>from_list</replaceable>
335
+ 重复,除非你想做自连接(这种情况下它必须以别名出现在<replaceable>from_list</replaceable>中)。
333
336
</para>
334
337
</listitem>
335
338
</varlistentry>
@@ -491,7 +494,7 @@ ____________________________________________________________________________-->
491
494
<para>
492
495
When a <literal>FROM</literal> clause is present, what essentially happens
493
496
is that the target table is joined to the tables mentioned in the
494
- <replaceable>from_list </replaceable>, and each output row of the join
497
+ <replaceable>from_item </replaceable> list , and each output row of the join
495
498
represents an update operation for the target table. When using
496
499
<literal>FROM</literal> you should ensure that the join
497
500
produces at most one output row for each row to be modified. In
@@ -503,7 +506,7 @@ ____________________________________________________________________________-->
503
506
____________________________________________________________________________-->
504
507
<para>
505
508
当存在<literal>FROM</literal>子句时,实际发生的是:目标表被连接到
506
- <replaceable>from_list </replaceable>中的表 ,并且该连接的每一
509
+ <replaceable>from_item </replaceable>列表中的表 ,并且该连接的每一
507
510
个输出行表示对目标表的一个更新操作。在使用<literal>FROM</literal>
508
511
时,你应该确保该连接对每一个要修改的行产生至多一个输出行。换
509
512
句话说,一个目标行不应该连接到来自其他表的多于一行上。如果发
0 commit comments