Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
16c5a471
Commit
16c5a471
authored
Jan 22, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve note about not using the target table name in the SET clause.
It's not related to whether an alias is used or not.
parent
2647ad65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
doc/src/sgml/ref/update.sgml
doc/src/sgml/ref/update.sgml
+6
-6
No files found.
doc/src/sgml/ref/update.sgml
View file @
16c5a471
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/update.sgml,v 1.3
5 2006/01/22 05:20:33 neilc
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/update.sgml,v 1.3
6 2006/01/22 20:34:11 tgl
Exp $
PostgreSQL documentation
-->
...
...
@@ -56,7 +56,7 @@ UPDATE [ ONLY ] <replaceable class="PARAMETER">table</replaceable> [ [ AS ] <rep
You must have the <literal>UPDATE</literal> privilege on the table
to update it, as well as the <literal>SELECT</literal>
privilege to any table whose values are read in the
<replaceable class="parameter">expression
</replaceable>s
or
<replaceable class="parameter">expression
s</replaceable>
or
<replaceable class="parameter">condition</replaceable>.
</para>
</refsect1>
...
...
@@ -82,9 +82,7 @@ UPDATE [ ONLY ] <replaceable class="PARAMETER">table</replaceable> [ [ AS ] <rep
provided, it completely hides the actual name of the table. For
example, given <literal>UPDATE foo AS f</>, the remainder of the
<command>UPDATE</command> statement must refer to this table as
<literal>f</> not <literal>foo</>. You cannot use the alias in
the <literal>SET</literal> clause. For example, <literal>SET
f.col = 1</> is invalid.
<literal>f</> not <literal>foo</>.
</para>
</listitem>
</varlistentry>
...
...
@@ -96,7 +94,9 @@ UPDATE [ ONLY ] <replaceable class="PARAMETER">table</replaceable> [ [ AS ] <rep
The name of a column in <replaceable
class="PARAMETER">table</replaceable>.
The column name can be qualified with a subfield name or array
subscript, if needed.
subscript, if needed. Do not include the table's name in the
specification of a target column — for example,
<literal>UPDATE tab SET tab.col = 1</> is invalid.
</para>
</listitem>
</varlistentry>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment