From fead79407a601845b97ed74b8de9e8c865f5eba0 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 8 Jul 2016 12:46:04 -0400 Subject: [PATCH] Docs: improve examples about not repeating table name in UPDATE ... SET. Alexander Law --- doc/src/sgml/ref/insert.sgml | 4 ++-- doc/src/sgml/ref/update.sgml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/ref/insert.sgml b/doc/src/sgml/ref/insert.sgml index e710cf4091..0406a097f5 100644 --- a/doc/src/sgml/ref/insert.sgml +++ b/doc/src/sgml/ref/insert.sgml @@ -194,8 +194,8 @@ INSERT INTO table_name [ AS ON CONFLICT DO UPDATE, do not include the table's name in the specification of a target column. For - example, INSERT ... ON CONFLICT DO UPDATE tab SET - table_name.col = 1 is invalid (this follows the general + example, INSERT INTO table_name ... ON CONFLICT DO UPDATE + SET table_name.col = 1 is invalid (this follows the general behavior for UPDATE). diff --git a/doc/src/sgml/ref/update.sgml b/doc/src/sgml/ref/update.sgml index 35b0699f08..c50434f85f 100644 --- a/doc/src/sgml/ref/update.sgml +++ b/doc/src/sgml/ref/update.sgml @@ -123,7 +123,7 @@ UPDATE [ ONLY ] table_name [ * ] [ The column name can be qualified with a subfield name or array 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. + UPDATE table_name SET table_name.col = 1 is invalid.