pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
table alias on update and delete query 2+ messages / 2 participants [nested] [flat]
* table alias on update and delete query @ 2002-01-19 18:53 chester c young <chestercyoung@yahoo.com> 2002-01-19 20:08 ` Re: table alias on update and delete query Stephan Szabo <sszabo@megazone23.bigpanda.com> 0 siblings, 1 reply; 2+ messages in thread From: chester c young @ 2002-01-19 18:53 UTC (permalink / raw) To: 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/ ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: table alias on update and delete query 2002-01-19 18:53 table alias on update and delete query chester c young <chestercyoung@yahoo.com> @ 2002-01-19 20:08 ` Stephan Szabo <sszabo@megazone23.bigpanda.com> 0 siblings, 0 replies; 2+ messages in thread From: Stephan Szabo @ 2002-01-19 20:08 UTC (permalink / raw) To: chester c young <chestercyoung@yahoo.com>; +Cc: 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" ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-01-19 20:08 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2002-01-19 18:53 table alias on update and delete query chester c young <chestercyoung@yahoo.com> 2002-01-19 20:08 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
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