Re: [HACKERS] query failed , don't know why - Mailing list pgsql-sql

From Tom Lane
Subject Re: [HACKERS] query failed , don't know why
Date
Msg-id 20421.961821429@sss.pgh.pa.us
Whole thread Raw
In response to query failed , don't know why  (Jeff MacDonald <jeff@pgsql.com>)
List pgsql-sql
Jeff MacDonald <jeff@pgsql.com> writes:
> UPDATE members m,payments p SET m.status = 2 WHERE p.paydate > 'now'::datetime - '1 month'::timespan and p.productid
='xxxxxxx' and m.gid = p.gid
 
> i'm trying to run that query and i'm getting 
> "parse error near m"
> but it looks ok to me 

OK according to what reference?  SQL92 doesn't allow anything but a
simple <table name> between UPDATE and SET --- no aliases, much less
multiple table names.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Mitch Vincent"
Date:
Subject: Speaking of fulltextindex...
Next
From: "K Parker"
Date:
Subject: Re: Wildcard in date field