Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Q:check constraint question ?
create table yourtable (c1 number,
c2 number, check ((c1!=1) or (c1=1 and c2=0)));
--
Regards
Emmanuel HUMBLOT e_humblot_at_wanadoo.fr
tedchyn_at_yahoo.com a écrit dans l'article <867723$41b$1_at_nnrp1.deja.com>...
> Sir, how do i create table with following constraint ?
>
> two columns(c1 number,c2 number) and check constraint is c2=0 when c1=1.
> thanks in advance
> Ted Chyn
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>
Received on Thu Jan 20 2000 - 11:06:53 CST
![]() |
![]() |