Subject | Re: [firebird-support] A basic consultation |
---|---|
Author | Eugenio Reis |
Post date | 2003-11-20T17:33:49Z |
Unique constraints and unique indexes work together, but they
are different things conceptually speaking. They are like
buildings and elevators. The taller the building, the more you
need elevators, the more records you need to uniquely constrain,
the more you need an unique index.
--- Ernesto Cullen <ecullen@...> escreveu: > Martijn,
Yahoo! Mail: 6MB, anti-spam e antivírus gratuito! Crie sua conta agora:
http://mail.yahoo.com.br
are different things conceptually speaking. They are like
buildings and elevators. The taller the building, the more you
need elevators, the more records you need to uniquely constrain,
the more you need an unique index.
--- Ernesto Cullen <ecullen@...> escreveu: > Martijn,
> if you declare a unique constraint, doesn't it creates a______________________________________________________________________
> unique index to
> enforce the constraint?
>
> Ernesto Cullen
> ecullen@...
> http://www.infoback.com.ar/buhardilla
> Paraná, Entre Ríos
> Argentina
>
>
> ----- Original Message -----
> From: "Martijn Tonies" <m.tonies@...>
> To: <firebird-support@yahoogroups.com>
> Sent: Thursday, November 20, 2003 12:52 PM
> Subject: Re: [firebird-support] A basic consultation
>
>
> >
> > > Driver
> > > ===============================
> > > Driver_ID integer PK
> > > License_Number varchar(12) Unique index - NOT NULL
> >
> > Unique CONSTRAINT.
> >
> >
> > Indices are for speed, constraints for integrity.
>
>
Yahoo! Mail: 6MB, anti-spam e antivírus gratuito! Crie sua conta agora:
http://mail.yahoo.com.br