Re: Bug or syntax error in my update query with a FROM statement ?

From: "ARP" <arnaud(dot)mlist1(at)free(dot)fr>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Bug or syntax error in my update query with a FROM statement ?
Date: 2002-04-24 15:25:33
Message-ID: 03b501c1eba4$48461180$0100a8c0@arp.homelinux.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks a lot, that's very clear for me now !
Arnaud

>It's useful to think of the behavior of UPDATE as exactly like a
>SELECT, except that rather than reporting the selected rows to you,
>it changes them per the SET target list. Had you written
>
>select utilisateur.* from utilisateur, utilisateur a, ancien b
>where a.util_id=b.util_id and b.anc_deces is not null and
> (a.login<>'*' or a.password<>'*');
>
>the error would be moderately obvious, no?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Luc Lachance 2002-04-24 15:27:24 Re: how does NOT work?
Previous Message Nigel J. Andrews 2002-04-24 15:22:34 Re: how does NOT work?