Re: UPDATE the field of a table with fields from another table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UPDATE the field of a table with fields from another table
Дата
Msg-id 25907.1160945217@sss.pgh.pa.us
обсуждение исходный текст
Ответ на UPDATE the field of a table with fields from another table  (Balvie <ener@ibb.nl>)
Ответы Re: UPDATE the field of a table with fields from another  (Balvie <ener@ibb.nl>)
Список pgsql-novice
Balvie <ener@ibb.nl> writes:
> UPDATE b1_naam
>    SET telnr = t.telnr
>    FROM b1_telco as t
>    WHERE
>      b1_naam.relcode = b1_telco.relcode AND
                         ^^^^^^^^ should be t
>      b1_naam.naam like 'Bakke%';

Less-obsolete versions of Postgres would have warned you about this,
or even reported it as an error.

            regards, tom lane

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

Предыдущее
От: Balvie
Дата:
Сообщение: UPDATE the field of a table with fields from another table
Следующее
От: Rafael Orta
Дата:
Сообщение: -- Problem loading plperlu --