From: Richard Huxton <dev@archonet.com>
To: Thomas Beutin <psql@laokoon.IN-Berlin.DE>
Cc: pgsql-sql@postgresql.org
Subject: Re: Help with "missing FROM clause" needed
Date: Mon, 06 Mar 2006 13:55:08 +0000
Message-ID: <440C3F3C.8030307@archonet.com> (raw)
In-Reply-To: <440C3860.8060200@laokoon.IN-Berlin.DE>
References: <440C3860.8060200@laokoon.IN-Berlin.DE>
Thomas Beutin wrote:
> Hi,
>
> to be compatible with the postgres standard syntax in 8.1.x i need some
> help for rewriting my "delete" statements ("select" is not a problem). I
> use the following statement:
>
> DELETE FROM partner_zu
> WHERE partner_zu.pa_id = partner.id
> AND partner_zu.m_id = '25'
> AND partner.open = 'm'
> AND partner.a_id = partner_zu.a_id
> AND partner_zu.a_id = '104335887112347';
DELETE FROM partner_zu
WHERE
partner_zu.m_id = '25'
...etc...
AND partner_zu.pa_id IN (
SELECT id FROM partner WHERE open='m' AND a_id='104335887112347'
)
Does that work for you?
--
Richard Huxton
Archonet Ltd
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, psql@laokoon.IN-Berlin.DE
Subject: Re: Help with "missing FROM clause" needed
In-Reply-To: <440C3F3C.8030307@archonet.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