From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | sqllist <pgsql-sql(at)postgresql(dot)org> |
Subject: | No JOINs in UPDATE ... FROM? |
Date: | 2001-04-26 17:42:54 |
Message-ID: | 3AE85E1E.2D39D02D@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general pgsql-sql |
Folks,
In 7.1 RC2, I've been trying to use the following JOIN syntax:
UPDATE assignments SET status = -1
FROM assignments JOIN orders ON assignments.order_usq = orders.usq
WHERE orders.status = -1;
However, I get an error of "Relation assignments referenced twice in
query."
Now, I can (and have) re-phrase the query so that PostgreSQL will
accept it. However, I was under the impression that the above was
standard SQL92. Am I mistaken? Or is this form something that just
hasn't been implemented yet?
-Josh
--
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Ing. Roberto Andrade Fonseca | 2001-04-26 18:12:14 | Re: random rows |
Previous Message | Thomas Heller | 2001-04-26 16:55:46 | Re: 7.1 performance |
From | Date | Subject | |
---|---|---|---|
Next Message | Joel Burton | 2001-04-26 17:48:45 | Re: NOTICE: CREATE TABLE will create implicit trigger(s) for FOREIGN KEY check(s) ? |
Previous Message | Gregory Wood | 2001-04-26 17:40:30 | Re: help with serial type |
From | Date | Subject | |
---|---|---|---|
Next Message | Ing. Roberto Andrade Fonseca | 2001-04-26 18:12:14 | Re: random rows |
Previous Message | Kenn Thompson | 2001-04-26 16:14:27 | Re: realising a counter in an pgpsql-trigger |