pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pvm@isnet.ru
To: pgsql-docs@postgresql.org
Subject: expessions alowed in UPDATE RETURNING
Date: Fri, 23 Dec 2016 07:14:18 +0000
Message-ID: <20161223071418.25615.49109@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.6/static/sql-update.html
Description:

https://www.postgresql.org/docs/current/static/sql-update.html

From the explanation of the &quot;output_expression&quot; clause and, correspondingly,
from the example, it is not clear, whether columns not mentioned nor in the
SET clause nor in the FROM clause are allowed in the RETURNING clause.

In other words, can I use a ststement like this: &quot;UPDATE weather SET temp_lo
= temp_lo+1, temp_hi = temp_lo+15 RETURNING prcp&quot; (look, I did not modified
prcp in this statement).

-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs


Message-ID: <20161223071418.25615.49109@wrigleys.postgresql.org>
Permalink:  ../20161223071418.25615.49109@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20161223071418.25615.49109@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: pvm@isnet.ru
  Subject: Re: expessions alowed in UPDATE RETURNING
  In-Reply-To: <20161223071418.25615.49109@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox