| От | Michael P. Soulier |
|---|---|
| Тема | updating a row referenced by a foreign key |
| Дата | |
| Msg-id | 48304014.4010004@mitel.com обсуждение исходный текст |
| Ответы |
Re: updating a row referenced by a foreign key
|
| Список | pgsql-general |
Hi, I have to update a row of data that is referenced via a foreign key constraint from another table. I cannot change the id of the referenced record because it is referenced as a foreign key from another table. Is there a simple way to update the row, and cascade the change to any and all rows referencing this row as a foreign key? I searched on cascade in the postgres docs and while I found references to deletion, I didn't find one for updates. Thanks, Mike -- Michael P. Soulier <michael_soulier@mitel.com>, 613-592-2122 x2522 "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера