table alias on update and delete query - Mailing list pgsql-sql

From chester c young
Subject table alias on update and delete query
Date
Msg-id 20020119185355.58065.qmail@web12705.mail.yahoo.com
Whole thread Raw
Responses Re: table alias on update and delete query
List 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/


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: null = null
Next
From: Stephan Szabo
Date:
Subject: Re: table alias on update and delete query