pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Niall Smart <niall.smart@ebeon.com>
To: pgsql-sql@postgresql.org
Subject: Something I'd like to try...
Date: Fri, 09 Jun 2000 12:18:54 +0100
Message-ID: <3940D29E.1B4B6B8D@ebeon.com> (raw)

Hi,

I just noticed that postgres doesn't totally support
column aliases on UPDATE statements, for example
 
         UPDATE EMPLOYEES SET
                 OFFICE_PHONE = UU.OFFICE_PHONE,
                 MOBILE_PHONE = UU.MOBILE_PHONE,
                 OFFICE_CD = UU.OFFICE_CD,
                 ABOUT_ME = UU.ABOUT_ME
         FROM
                 UNCONFIRMED_UPDATES UU
         WHERE
                 EMPLOYEES.EMPLOYEE_ID = UU.EMPLOYEE_ID AND
                 UU.UPDATE_ID = 'HJhjaJ023J19KJAqp'

It is not currently possible to alias EMPLOYEES
so that the test can become

         E.EMPLOYEE_ID = UU.EMPLOYEE_ID

Do the guru's think that this would be hard to add?  Also,
is it desirable?
--

Niall Smart

email:  niall.smart@ebeon.com
phone:  (087) 8052390



view thread (7+ messages)  latest in thread

Message-ID: <3940D29E.1B4B6B8D@ebeon.com>
Permalink:  ../3940D29E.1B4B6B8D@ebeon.com/
Also on:    postgresql.org/message-id/3940D29E.1B4B6B8D@ebeon.com

 · 

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: niall.smart@ebeon.com
  Subject: Re: Something I'd like to try...
  In-Reply-To: <3940D29E.1B4B6B8D@ebeon.com>
  References: <3940D29E.1B4B6B8D@ebeon.com>

* 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