From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-sql@postgresql.org
Subject: Re: Help with "missing FROM clause" needed
Date: Mon, 6 Mar 2006 15:51:38 +0100
Message-ID: <20060306145138.GK29842@webserv.wug-glas.de> (raw)
In-Reply-To: <440C46EA.4070504@laokoon.IN-Berlin.DE>
References: <440C3860.8060200@laokoon.IN-Berlin.DE>
<440C3F3C.8030307@archonet.com>
<440C46EA.4070504@laokoon.IN-Berlin.DE>
am 06.03.2006, um 15:27:54 +0100 mailte Thomas Beutin folgendes:
> >>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?
> What should i do with the "AND partner.a_id = partner_zu.a_id" ? Without
> this it would be working fine.
*untested*
DELETE FROM partner_zu using partner
WHERE partner_zu.pa_id = partner.id
...
The point is the 'using ...'
Btw.: where is my other mail?
HTH, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47215, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===
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: andreas.kretschmer@schollglas.com
Subject: Re: Help with "missing FROM clause" needed
In-Reply-To: <20060306145138.GK29842@webserv.wug-glas.de>
* 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