Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Conditional Constraint?
Your wish has been granted, Doc Morgan :
ALTER TABLE Demerit ADD CONSTRAINT a2 CHECK (dem_code <= 20 or dem_code > 20 and points <=3);
to repeat myself.....
Now, Mr. "teacher": how about *reading* people's postings before answering them.....
DA Morgan <damorgan_at_exesolutions.com> wrote in message news:<3E078F1E.8281DA32_at_exesolutions.com>...
> J Alex wrote:
>
> >
> I missed Jonathan's posting but the request was for:
>
> "All DEM_CODE should carry an integer POINT"
>
> I'd like to see a Check Constraint with an "AND" clause.
>
> Daniel Morgan
Received on Tue Dec 24 2002 - 04:02:15 CST