Re: table alias - Mailing list pgsql-hackers-win32

From Tom Lane
Subject Re: table alias
Date
Msg-id 23102.1085496770@sss.pgh.pa.us
Whole thread Raw
In response to table alias  (Bob.Henkel@hartfordlife.com)
List pgsql-hackers-win32
Bob.Henkel@hartfordlife.com writes:
> When I try an update like the one below I get the error that follows.

> update report_base s
> set s.sql_base = 'select * from test_data where'
> where s.report_base_id = 1;

> ERROR:  syntax error at or near "s" at character 20

This is correct per SQL standard.  There are some other databases that
allow an alias for the UPDATE target, but not Postgres.

            regards, tom lane

pgsql-hackers-win32 by date:

Previous
From: Bob.Henkel@hartfordlife.com
Date:
Subject: Re: table alias
Next
From: "Douglas Wilson"
Date:
Subject: Build problem