Update Join ?

From: kevin kempter <kevin(at)kevinkempterllc(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Update Join ?
Date: 2008-04-01 21:51:30
Message-ID: 44057B51-3397-4779-BF4C-8532C5C6E36B@kevinkempterllc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi List;

Does Postgres allow updates based on the context of a sub-query,
something like the sample below ?

1) Insert data (real_tab.keyID and real_tab.data_desc) into a temp
table (temp_tab)

2) update real_tab
set real_tab.data_desc = temp_tab.data_desc
join real_tab on real_tab.keyID = temp_tab.keyID ;

Thanks in advance..

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adam Rich 2008-04-01 21:55:28 Re: Update Join ?
Previous Message Jeff Wigal (Referee Assistant) 2008-04-01 21:44:05 Re: Connection reset by peer / broken pipe