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: Should I use PK or Unique Index in this table ?

Re: Should I use PK or Unique Index in this table ?

From: Tony Andrews <andrewst_at_onetel.com>
Date: 28 Sep 2004 04:22:39 -0700
Message-ID: <1096370559.126392.88790@h37g2000oda.googlegroups.com>


xtanto wrote:
> Hi,
> SO what should I use on the table ?
> Can I define it as NULLable and put Unique index on it ?

Yes, but then you must ALSO define a primary key, surrogate or otherwise. Without a primary key, how are you going to tell Oracle which row to update with the Employee No value when you get one? Received on Tue Sep 28 2004 - 06:22:39 CDT

Original text of this message

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