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 -> Re: Check constraint violated

Re: Check constraint violated

From: andrewst <member14183_at_dbforums.com>
Date: Sat, 14 Jun 2003 11:33:48 +0000
Message-ID: <3002558.1055590428@dbforums.com>

Originally posted by Me
> On Fri, 13 Jun 2003 21:33:43 +0530, Me wrote:
> >2) How can I put a check constraint that allows entering data
> into apointee only
> >if the nominee's age is lesser than 18?
>
> Could someone help me with this constraint.
>
> Thanks.

ALTER TABLE appointee
ADD CONSTRAINT chk_nominee_age CHECK (age < 18);

--
Posted via http://dbforums.com
Received on Sat Jun 14 2003 - 06:33:48 CDT

Original text of this message

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