Re: Help with "missing FROM clause" needed

From: Thomas Beutin <psql(at)laokoon(dot)IN-Berlin(dot)DE>
To:
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Help with "missing FROM clause" needed
Date: 2006-03-06 14:27:54
Message-ID: 440C46EA.4070504@laokoon.IN-Berlin.DE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Richard Huxton wrote:
> 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?
What should i do with the "AND partner.a_id = partner_zu.a_id" ? Without
this it would be working fine.

Greetings,
-tb
--
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message A. Kretschmer 2006-03-06 14:51:38 Re: Help with "missing FROM clause" needed
Previous Message A. Kretschmer 2006-03-06 13:57:35 Re: Help with "missing FROM clause" needed