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

Home -> Community -> Usenet -> c.d.o.misc -> Modifying a constraint to make exceptions...

Modifying a constraint to make exceptions...

From: Carlos <miotromailcarlos_at_netscape.net>
Date: 13 Jan 2005 00:39:51 -0800
Message-ID: <1de5ebe7.0501130039.420f62a@posting.google.com>


Drop your CONSTRAINT uniqueCar and

use a unique function based index:

CREATE UNIQUE INDEX CAR_UIDX_01
    ON CAR(DECODE(model,NULL,NULL,MAKE),DECODE(model,NULL,NULL,MODEL))

Cheers and greetings from Spain.

Carlos. Received on Thu Jan 13 2005 - 02:39:51 CST

Original text of this message

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