implicit tables syntax disappeared from 8.0->8.1

Поиск
Список
Период
Сортировка
От pg@os10000.net
Тема implicit tables syntax disappeared from 8.0->8.1
Дата
Msg-id 20060228130144.E44682C04C@bces-1600.de
обсуждение исходный текст
Ответы Re: implicit tables syntax disappeared from 8.0->8.1  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список 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



В списке pgsql-general по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: indexes
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: implicit tables syntax disappeared from 8.0->8.1