Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: (Non)Unique Index Vs Unique Constraint
Govindan,
You can create FK relationship(Parent-child) by using UNIQUE constraint.. Correct me if I am wrong.
-----Original Message-----
Sent: Thursday, January 22, 2004 6:37 PM
To: Multiple recipients of list ORACLE-L; Multiple recipients of list
ORACLE-L
Cc: jaysingh1_at_optonline.net
Add this to what Arup said:
PK enables one to have References established in a schema. (Parent Child
relationships i mean). That cannot be done just by having a unique
and/or
not null constraints set.
You will get ORA-02270: no matching unique or primary key for this
column-list
HTH
GovindanK
On Sat, 17 Jan 2004 20:49:25 -0800, "Arup Nanda" <orarup_at_hotmail.com>
said:
> Jay,
>
> Remember, both UK and PK are enforced by unique indexes. The important
> difference between them is a null value is allowed in UK, not in PK.
>
-- http://www.fastmail.fm - Access your email from home and the web -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jay INET: jaysingh1_at_optonline.net Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- 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).Received on Thu Jan 22 2004 - 21:49:26 CST