Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Not needed check constraints
Hi Stjepan,
I guess it kind of depends.
In my teeny weeny opinion, I would have the check constraint for a number of reasons.
So my vote, create the constraint.
Cheers
Richard
"Stjepan Brbot" <stjepan.brbot_at_zg.hinet.hr> wrote in message
news:ahm5ud$fitv$1_at_as201.hinet.hr...
> I have table with column "ACTIVE" where my application stores the values
> of checkbox: 'Y' or 'N' (checked/unchecked). Although my application
> cannot store any other value than 'Y' or 'N', question is; is it good
> practice to have the additional check constraint checking if the value
> of "ACTIVE" column is in domain ('Y','N') or this is just waste of
> maintenance time and database performance because every time before
> inserting or updating database has to check if the new data for "ACTIVE"
> column is in ('Y','N') domain?
>
> --
>
> Stjepan Brbot
>
>
>
>
>
Received on Wed Jul 24 2002 - 08:53:13 CDT