pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anuradha Ratnaweera <anuradha@gnu.org>
To: pgsql-sql@postgresql.org
Subject: order of multiple assignments in UPDATE
Date: Sat, 28 Apr 2001 18:48:49 +0600 (LKT)
Message-ID: <Pine.LNX.4.21.0104281846010.233-100000@presario> (raw)
In-Reply-To: <9c7g2a$2f4o$1@news.tht.net>


If I have a query

  UPDATE tablename SET c1 = 10 - c2, c2 = 4 where ...

will the two assignments be evaluated from left to right?

Thanks in advance.

Anuradha




view thread (3+ messages)  latest in thread

Message-ID: <Pine.LNX.4.21.0104281846010.233-100000@presario>
Permalink:  ../Pine.LNX.4.21.0104281846010.233-100000@presario/
Also on:    postgresql.org/message-id/Pine.LNX.4.21.0104281846010.233-100000@presario

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: anuradha@gnu.org
  Subject: Re: order of multiple assignments in UPDATE
  In-Reply-To: <Pine.LNX.4.21.0104281846010.233-100000@presario>
  References: <9c7g2a$2f4o$1@news.tht.net> <Pine.LNX.4.21.0104281846010.233-100000@presario>

* 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