table alias on update and delete query

From: chester c young <chestercyoung(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: table alias on update and delete query
Date: 2002-01-19 18:53:55
Message-ID: 20020119185355.58065.qmail@web12705.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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/

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2002-01-19 20:08:24 Re: table alias on update and delete query
Previous Message Tom Lane 2002-01-19 17:45:53 Re: null = null