Subject | Re: [firebird-support] Foreign Keys |
---|---|
Author | Nando Dessena |
Post date | 2004-12-20T15:39:39Z |
Chad,
- when you define an unique constraint, an unique index is implicitly
created.
- when you define an unique index, you have practically the same
effect as defining an unique constraint, minus the ability to have FKs
point to it.
I only define unique indexes for performance reasons, and define
unique constraints for business rules related reasons.
HTH
--
Nando Dessena
http://www.flamerobin.org
>I can apply a FK on a PK and unique constraint, but not to- the target for a FK must be a constraint (an index won't do).
>a unique index?
- when you define an unique constraint, an unique index is implicitly
created.
- when you define an unique index, you have practically the same
effect as defining an unique constraint, minus the ability to have FKs
point to it.
I only define unique indexes for performance reasons, and define
unique constraints for business rules related reasons.
HTH
--
Nando Dessena
http://www.flamerobin.org