Re: Join bei Update

From: Enrico Weigelt <weigelt(at)metux(dot)de>
To: pgsql-de-allgemein <pgsql-de-allgemein(at)postgresql(dot)org>
Subject: Re: Join bei Update
Date: 2005-10-11 22:49:30
Message-ID: 20051011224929.GA15601@nibiru.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-de-allgemein

* Thomas Hoth <tho(at)lihas(dot)de> schrieb:
> Hallo,
>
> unterstüzt Postgres 7.4 Joins bei einem Update?
>
> Update tabelle1,tabelle2 set tabelle1.bla='asd', tabelle2.gaga='adads' where tabelle1.id=tabelle2.id

was Du da willst, ist nicht wirklich ein Join, sondern ein Update
zweier Tabellen, gefiltert nach einem Join.

Läßt sich das nicht umformulieren ?

Alternativ könntest Du das über einen View (mit entsprechenden
Update-Regeln) lösen.

cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service
phone: +49 36207 519931 www: http://www.metux.de/
fax: +49 36207 519932 email: contact(at)metux(dot)de
---------------------------------------------------------------------
Realtime Forex/Stock Exchange trading powered by postgreSQL :))
http://www.fxignal.net/
---------------------------------------------------------------------

In response to

Responses

Browse pgsql-de-allgemein by date

  From Date Subject
Next Message Thomas Hoth 2005-10-12 08:46:48 Re: Join bei Update
Previous Message Thomas Hoth 2005-10-11 18:32:07 Join bei Update