ALTER TABLE mytable
ADD CONSTRAINT uniq_cons1
UNIQUE( email, name, name ) DISABLE;
ALTER TABLE mytable
MODIFY CONSTRAINT uniq_cons1 ENABLE NOVALIDATE;
Sent via Deja.com
http://www.deja.com/
(Chapter 18 - Integrity)
--
Jonathan Lewis
Yet another Oracle-related web site: http://www.jlcomp.demon.co.uk
Practical Oracle 8i: Building Efficient Databases
Publishers: Addison-Wesley
Reviews at: http://www.jlcomp.demon.co.uk/book_rev.html
Chris McFadden wrote in message <95celg$7jk$1...@nnrp1.deja.com>...
Since, in your case, you allowed it to create a unique index, then the
*Index* is taking it upon itself to spit the dummy about the violating
records, and the novalidate at table level is having no effect.
To ensure non-unique indexes are used, the key word is DEFERRABLE (but
you'll have to check how to spell that, because I don't have my Big Boy's
Book of Syntax ready to hand!). Whether the constraint is then ACTUALLY
deferred or is initially IMMEDIATE is irrelevant.
Regards
HJR
"Chris McFadden" <chris_m...@discovery.com> wrote in message
news:95celg$7jk$1...@nnrp1.deja.com...