how to write correctly this update ?

Поиск
Список
Период
Сортировка
От Pierre Couderc
Тема how to write correctly this update ?
Дата
Msg-id 388af3c8-bfcf-8e38-4634-7ebda366f410@couderc.eu
обсуждение исходный текст
Ответы Re: how to write correctly this update ?  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-general
I have tried many ways to update a table  :

UPDATE  personnes T1 SET T1.nom_naiss=T1.nom FROM  personnes T2, 
personnes T3
WHERE  ....;


UPDATE  personnes T1 SET T1.nom_naiss=T1.nom FROM  personnes T1, 
personnes T2, personnes T3
WHERE ..;


In my case , where clause is : WHERE T1.id=T2.id_mere AND 
T2.id_pere=T3.id AND T1.nom != T3.nom;

Thanks.

PC







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

Предыдущее
От: Rich Shepard
Дата:
Сообщение: Re: Bulk inserts into two (related) tables
Следующее
От: Jeremy Finzel
Дата:
Сообщение: Re: Bulk inserts into two (related) tables