Re: Why UPDATE gl SET gl.glnum = gl.glnum; cause error - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Why UPDATE gl SET gl.glnum = gl.glnum; cause error
Date
Msg-id 20050708070921.G53562@megazone.bigpanda.com
Whole thread Raw
In response to Why UPDATE gl SET gl.glnum = gl.glnum; cause error when UPDATE gl SET glnum = glnum; is OK ?  (David Gagnon <dgagnon@siunik.com>)
Responses Re: Why UPDATE gl SET gl.glnum = gl.glnum; cause error
List pgsql-general
On Fri, 8 Jul 2005, David Gagnon wrote:

> Hi all,
>
> I was juste wondering why the following code don't work:
>  UPDATE gl SET gl.glnum = gl.glnum
> ERROR:  column "gl" of relation "gl" does not exist
>
> While the following works:
> UPDATE gl SET glnum = glnum;
>
> Query returned successfully: 177 rows affected, 281 ms execution time.
>
> the TABLE.COLUMN is not in the SQL standard ?

For at least 92 (and I'm almost certain 99) not in the SET list.  It uses
column name (which is a plain identifier) rather than a column reference.

pgsql-general by date:

Previous
From: David Gagnon
Date:
Subject: Why UPDATE gl SET gl.glnum = gl.glnum; cause error when UPDATE gl SET glnum = glnum; is OK ?
Next
From: Bruno Wolff III
Date:
Subject: Re: Why UPDATE gl SET gl.glnum = gl.glnum; cause error when UPDATE gl SET glnum = glnum; is OK ?