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: Insert trigger to enforce uniqueness

Re: Insert trigger to enforce uniqueness

From: Mladen Gogala <mgogala_at_earthlink.net>
Date: Mon, 04 Mar 2002 07:12:16 GMT
Message-ID: <pan.2002.03.04.02.14.04.701522.5075@earthlink.net>


On Sun, 03 Mar 2002 20:43:59 -0500, tram wrote:

> Hi,
>
> Our third party application doesn't allow to create Unique indexes on a
> column.
> I want to write an insert trigger which allow nulls but no duplicate
> values on a column (peopleID column). Waht is the best way to write
> BEFORE INSERT TRIGGER for thsi kind of requirement? Please give sample

What kind of an application doesn't allow unique indexes on the table? What is it supposed to do? A full table scan? Use the force of the One Ring?

-- 
Mladen Gogala
Received on Mon Mar 04 2002 - 01:12:16 CST

Original text of this message

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