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

From Stephan Szabo
Subject Re: table alias on update and delete query
Date
Msg-id 20020119120642.X76854-100000@megazone23.bigpanda.com
Whole thread Raw
In response to table alias on update and delete query  (chester c young <chestercyoung@yahoo.com>)
List pgsql-sql
On Sat, 19 Jan 2002, chester c young wrote:

> is there no table alias on update and dml query?  is there workaround?

AFAIK, only use the full table name and alias any other copies.

> 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"



pgsql-sql by date:

Previous
From: chester c young
Date:
Subject: table alias on update and delete query
Next
From: Murray Prior Hobbs
Date:
Subject: Re: pltlc and pltlcu problems