Re: deleting the master but not the detail
От | Ismael .... |
---|---|
Тема | Re: deleting the master but not the detail |
Дата | |
Msg-id | BLU103-W33F7BA55F79BB571BC113AA38E0@phx.gbl обсуждение исходный текст |
Ответ на | Re: deleting the master but not the detail ("Scott Marlowe" <scott.marlowe@gmail.com>) |
Ответы |
Re: deleting the master but not the detail
|
Список | pgsql-general |
It seems like 3 vs 1 so you win :) I'll drop the constraint and verify the integrity of the new records manually tanks > > On Thu, Jul 17, 2008 at 10:52 AM, Douglas McNaught wrote: >> On Thu, Jul 17, 2008 at 12:11 PM, Ismael .... 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. _________________________________________________________________ Tenemos lo que búscas…JUEGOS. http://club.prodigymsn.com/
В списке pgsql-general по дате отправления: