Skip site navigation (1) Skip section navigation (2)

Re: Allow an alias for the target table in UPDATE/DELETE

From: Neil Conway <neilc(at)samurai(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Atsushi Ogawa <atsushi(dot)ogawa(at)gmail(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Allow an alias for the target table in UPDATE/DELETE
Date: 2006-01-22 07:43:31
Message-ID: 1137915811.8798.41.camel@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-patches
On Sun, 2006-01-22 at 02:23 -0500, Tom Lane wrote:
> 	relation_expr opt_as ColId
> 
> try
> 
> 	relation_expr ColId
> 	| relation_expr AS ColId

Yeah, I already tried that without success. The no-AS-specified variant
is still ambiguous: given SET following relation_expr, the parser still
can't determine whether the SET is the table alias or is part of the
UpdateStmt.

-Neil



In response to

pgsql-patches by date

Next:From: Martijn van OosterhoutDate: 2006-01-22 10:23:51
Subject: Re: Allow an alias for the target table in UPDATE/DELETE
Previous:From: Neil ConwayDate: 2006-01-22 07:26:05
Subject: Re: Allow an alias for the target table in UPDATE/DELETE

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group