Subject | RE: [firebird-support] Detect FK usage |
---|---|
Author | Ann W. Harrison |
Post date | 2004-11-10T15:04:15Z |
At 07:12 PM 11/9/2004, Chad Z. Hower wrote:
if one exists.
Regards,
Ann
>:: >But for edit - how can I determine easily if its already in use andI'd write a trigger that checks for a reference and disallows updates
>:: >then decide to allow it to be updated or not?
>Only if it affects the keys. The edits would be on fields that are not part
>of the key. For exampel I have an Item table, its key is ItemID. It has a
>Name field - but I don't wat the user to be able to edit Name after ItemID
>is referenced from another table.
if one exists.
Regards,
Ann