Update Syntax

From: ramirez(at)idconcepts(dot)org (Edwin S(dot) Ramirez)
To: pgsql-hackers(at)postgresql(dot)org
Subject: Update Syntax
Date: 2004-01-30 15:41:18
Message-ID: 8d9c3e20.0401300741.8c287d3@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

I need Postgres support for the following update syntax :

update table1 set (col1, col2, col3) = (select f1, f2, f3 from table2
where id=5) where rownum=3;

update table1 set (col1, col2, col3) = (select f1, f2, f3 from table2
where id=table1.parentid) where rownum=3;

These type of update statements are the only ones supported by Oracle
to update one table from another.

Can this be added to the TODO list?
Can a cash prize be associated with the TODO item?, I have $1000US
allocated for this.

-ESR-

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Edwin S. Ramirez 2004-01-30 15:43:06 Transaction aborts on syntax error.
Previous Message Tom Lane 2004-01-30 15:39:46 Re: Question about indexes