From: chester c young <chestercyoung@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: table alias on update and delete query
Date: Sat, 19 Jan 2002 10:53:55 -0800 (PST)
Message-ID: <20020119185355.58065.qmail@web12705.mail.yahoo.com> (raw)
is there no table alias on update and dml query? is there workaround?
egg=# update lw_pres p1 set pid=pid+1
egg(# where exists( select 1 from lw_pres p2
egg(# where p1.pid = p2.pid and p1.oid < p2.oid );
ERROR: parser: parse error at or near "p1"
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
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: chestercyoung@yahoo.com
Subject: Re: table alias on update and delete query
In-Reply-To: <20020119185355.58065.qmail@web12705.mail.yahoo.com>
* 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