Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfead794

Browse files
committed
Docs: improve examples about not repeating table name in UPDATE ... SET.
Alexander Law
1 parent31ce32a commitfead794

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎doc/src/sgml/ref/insert.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ INSERT INTO <replaceable class="PARAMETER">table_name</replaceable> [ AS <replac
194194
column leaves the other fields null.) When referencing a
195195
column with <literal>ON CONFLICT DO UPDATE</>, do not include
196196
the table's name in the specification of a target column. For
197-
example, <literal>INSERT ... ON CONFLICT DO UPDATE tab SET
198-
table_name.col = 1</> is invalid (this follows the general
197+
example, <literal>INSERTINTO table_name... ON CONFLICT DO UPDATE
198+
SETtable_name.col = 1</> is invalid (this follows the general
199199
behavior for <command>UPDATE</>).
200200
</para>
201201
</listitem>

‎doc/src/sgml/ref/update.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ UPDATE [ ONLY ] <replaceable class="PARAMETER">table_name</replaceable> [ * ] [
123123
The column name can be qualified with a subfield name or array
124124
subscript, if needed. Do not include the table's name in the
125125
specification of a target column &mdash; for example,
126-
<literal>UPDATEtab SETtab.col = 1</> is invalid.
126+
<literal>UPDATEtable_name SETtable_name.col = 1</> is invalid.
127127
</para>
128128
</listitem>
129129
</varlistentry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp