implicit tables syntax disappeared from 8.0->8.1

From: pg(at)os10000(dot)net
To: "PG Users" <pgsql-general(at)postgresql(dot)org>
Subject: implicit tables syntax disappeared from 8.0->8.1
Date: 2006-02-28 13:01:44
Message-ID: 20060228130144.E44682C04C@bces-1600.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

the following used to work:

create table t1(t1f1 text, t1f2 text, t1f3 text);
create table t2(t2f2 text, t2f3 text);

insert ...

update t1
set t1f1='test'
where t1.t1f2=t2.t2f2
and t1.t1f3=t2.t2f3;

unfortunately, now I get the error that t2 is not in the FROM clause.

I know I can do

update t1
set t1f1='test'
where t1.t1f2||'/'||t1.t1f3 in
(select t2.t2f2||'/'||t2.t2f3 from t2);

But I'm afraid that's very expensive. Do you have a suggestion for
alternative syntax for my initial query?

Thank you,

Oliver Seidel

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nikolay Samokhvalov 2006-02-28 13:11:50 Re: Sequences/defaults and pg_dump
Previous Message Douglas McNaught 2006-02-28 12:28:12 Re: Size comparison between a Composite type and an