From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff MacDonald <jeff@pgsql.com>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] query failed , don't know why
Date: Sat, 24 Jun 2000 00:37:09 -0400
Message-ID: <20421.961821429@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSF.4.21.0006231549310.280-100000@rage.hub.org>
References: <Pine.BSF.4.21.0006231549310.280-100000@rage.hub.org>
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, jeff@pgsql.com, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] query failed , don't know why
In-Reply-To: <20421.961821429@sss.pgh.pa.us>
References: <Pine.BSF.4.21.0006231549310.280-100000@rage.hub.org> <20421.961821429@sss.pgh.pa.us>
* 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