Something I'd like to try...

From: Niall Smart <niall(dot)smart(at)ebeon(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Something I'd like to try...
Date: 2000-06-09 11:18:54
Message-ID: 3940D29E.1B4B6B8D@ebeon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(dot)smart(at)ebeon(dot)com
phone: (087) 8052390

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bryan White 2000-06-09 15:28:22 Client Logging
Previous Message Niall Smart 2000-06-09 11:08:35 Re: Problem with subquery in CHECK constraint.