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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Primary keys vs. unique indexes

RE: Primary keys vs. unique indexes

From: Kieran Murray <Kieran.Murray_at_esat.com>
Date: Thu, 30 Nov 2000 09:29:45 -0000
Message-Id: <10696.123296@fatcity.com>


Creating a primary key will also mean creating an index, but one that only allow unique non-null values, the unique index constraint will permit both unique values and NULL values.

Regards,
Kieran

-----Original Message-----
From: cemail_at_sprintmail.com [mailto:cemail_at_sprintmail.com] Sent: 30 November 2000 06:00
To: Multiple recipients of list ORACLE-L Subject: Primary keys vs. unique indexes

What is the difference between building a table and including the primary key versus building the table and then having creating a unique index on the same keys? When you create a table with a primary key, doesn't Oracle store it as an index anyway?



Sent using MailStart.com ( http://MailStart.Com/welcome.html ) The FREE way to access your mailbox via any web browser, anywhere!

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: cemail_at_sprintmail.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.

http://www.marketplace.ie
Ireland's Home for eBusiness


Received on Thu Nov 30 2000 - 03:29:45 CST

Original text of this message

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