Improve note about not using the target table name in the SET clause.
authorTom Lane
Sun, 22 Jan 2006 20:34:11 +0000 (20:34 +0000)
committerTom Lane
Sun, 22 Jan 2006 20:34:11 +0000 (20:34 +0000)
It's not related to whether an alias is used or not.

doc/src/sgml/ref/update.sgml

index 95e4310ab424657a2c175b62a38d1d3b96c95ea4..f3c7f3aa54d8ec4f7ae8fd4a3c502a68e1362ce3 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -56,7 +56,7 @@ UPDATE [ ONLY ] table [ [ AS ] 
    You must have the UPDATE privilege on the table
    to update it, as well as the SELECT
    privilege to any table whose values are read in the
-   expressions or
+   expressions or
    condition.
   
  
@@ -82,9 +82,7 @@ UPDATE [ ONLY ] table [ [ AS ] 
       provided, it completely hides the actual name of the table.  For
       example, given UPDATE foo AS f, the remainder of the
       UPDATE statement must refer to this table as
-      f not foo. You cannot use the alias in
-      the SET clause.  For example, SET
-      f.col = 1 is invalid.
+      f not foo.
      
     
    
@@ -96,7 +94,9 @@ UPDATE [ ONLY ] table [ [ AS ] 
       The name of a column in 
       class="PARAMETER">table.
       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,
+      UPDATE tab SET tab.col = 1 is invalid.