| От | Scott Marlowe |
|---|---|
| Тема | Re: deleting the master but not the detail |
| Дата | |
| Msg-id | dcc563d10807171102i45ee2949o71296fdf33f408fc@mail.gmail.com обсуждение |
| Ответ на | Re: deleting the master but not the detail ("Douglas McNaught" <doug@mcnaught.org>) |
| Ответы |
Re: deleting the master but not the detail
|
| Список | pgsql-general |
On Thu, Jul 17, 2008 at 10:52 AM, Douglas McNaught <doug@mcnaught.org> wrote: > On Thu, Jul 17, 2008 at 12:11 PM, Ismael .... <ismaelpsp@hotmail.com> wrote: >> >> hi >> I have one of those master-detail relationships here and I need to be able >> to delete the master but leave the details untouched > > Then remove the referential integrity constraint, since it's obviously > incompatible with your business requirements. Generally I'd agree, but it might be useful to set the child record referencing id field to NULL in this circumstance.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера