Subject | RE: [firebird-support] Foreign Keys |
---|---|
Author | Ann W. Harrison |
Post date | 2004-12-20T19:06:27Z |
At 11:32 AM 12/20/2004, Chad Z. Hower wrote:
insures that there are no duplicates in a field or set of fields.
A unique index is an underlying physical structure that the
standard knows nothing about.
In the Firebird implementation, and all others I know of, the
unique constraint is implemented by creating a unique index.
Regards,
Ann
>:: - the target for a FK must be a constraint (an index won't do).Yes.
>:: - when you define an unique constraint, an unique index is
>:: implicitly created.
>
>If I create a constraint, will the index it creates be used for searches and
>sorting?
> So again.. Now I am REALLY confused.. Whas the difference between aA unique constraint is something defined in the standard that
>unique constraint and a unique index?
insures that there are no duplicates in a field or set of fields.
A unique index is an underlying physical structure that the
standard knows nothing about.
In the Firebird implementation, and all others I know of, the
unique constraint is implemented by creating a unique index.
>I know Helen replied - and it made aBecause that's what the standard requires.
>little sense but now Im more confused than before.
>
>:: - 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.
>
>Why though?
Regards,
Ann