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: URGENT: Primary key vs Unique Index

Re: URGENT: Primary key vs Unique Index

From: g.r.s. deisz <g.r.s.deisz_at_ptt-telecom.unisource.nl>
Date: 1997/02/28
Message-ID: <5f6ipe$ioe@pwxl01.telecom.ptt.nl>#1/1

In article <33133DFD.6162_at_mediadata.com.sg>,

   Mars <mars_at_mediadata.com.sg> wrote:
>Pardon my ignorance but why can't a primary key be NULL ? Is it a rule
>or is it specific to just Oracle ?

A primary key generally serves to uniquely identify each record in a table. Thus, a primary key being NULL would mean something like "I don't know what this record is about", something we don't like to see in a database.

Stefan.


Name      :G.R.S. Deisz
Phone     :+31-50-5855954
E mail    :G.R.S.Deisz_at_PTT-Telecom.Unisource.NL
DISCLAIMER:This statement is not an official statement from, nor
           does it represent an official position of, PTT Telecom BV.
Received on Fri Feb 28 1997 - 00:00:00 CST

Original text of this message

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