Re: Why can't you define a table alias on an update?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: nolan(at)celery(dot)tssi(dot)com
Cc: pgsql-general(at)postgresql(dot)org (pgsql general list)
Subject: Re: Why can't you define a table alias on an update?
Date: 2003-06-15 22:36:57
Message-ID: 12019.1055716617@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

nolan(at)celery(dot)tssi(dot)com writes:
> This is the query I posted a performance question on, but I have a
> SQL standard question about it too:
> Why can't you define an alias on the primary table in an update query?

Because there's no such syntax in the SQL standard.

It seems like a reasonable extension, but looking at the grammar just
now, I think that we'd have to turn SET from an unreserved keyword to a
reserved word to make this work. Not sure how many peoples' databases
that would break ... but we'd probably get a few complaints ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tino Wildenhain 2003-06-15 22:43:32 Re: full featured alter table?
Previous Message Oleg Bartunov 2003-06-15 22:34:01 Re: [HACKERS] UTF8 and KOI8 mini-howto