Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Help: What is the difference between UNIQUE and PRIMARY KEY?

Re: Help: What is the difference between UNIQUE and PRIMARY KEY?

From: Valery Yourinsky <vsu_at_bill.mts.ru>
Date: Thu, 12 Apr 2001 16:28:57 +0400
Message-ID: <3AD59F89.7A82A54C@bill.mts.ru>

Steve Bell wrote:
>
> A unique field requires that each entry be different (unique) from every
> other record OR NULL.
>
> A primary key imposes a second condition, namely the NOT NULL
> condition...so, the field must be both unique and not null.

   In addition table can have ONLY ONE PRIMARY KEY    and any number of UNIQUE KEYS (alternate key).

Valery Yourinsky
>
> u518615722_at_spawnkill.ip-mobilphone.net wrote:
>
> > I searched against metalink and could not find the
> > definition of unique index, could somebody help
> > me out?
> >
> > Thanks
> >
> >
> > --
> > Sent by dbadba62 from hotmail subpart of com
> > This is a spam protected message. Please answer with reference header.
> > Posted via http://www.usenet-replayer.com/cgi/content/new

-- 
Oracle8 Certified DBA
Moscow, Russia
Received on Thu Apr 12 2001 - 07:28:57 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US