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: Simple Interview Question...

Re: Simple Interview Question...

From: <Kenneth>
Date: Sat, 12 Mar 2005 18:48:47 GMT
Message-ID: <4233385d.2492906@news.inet.tele.dk>


On 11 Mar 2005 04:36:25 -0800, "Ariji Chatterjee" <arijitchatterjee123_at_yahoo.co.in> wrote:

>Dear Faculties,
>Is there any limitation that these many constraints in a particular
>table can exist.I tried but upto 2000.Please any body can tell me the
>exact answer.
>Regards
>Arijit Chatterjee
>

Hi Arjiit,

 If there's a limit, it is very, very high.

But why don't you just try it :

create table t1(c1 number(10));

declare
  limit number(38) := 1;
begin
  while 1 = 1 loop
    limit := limit + 1;
    execute immediate 'alter table t1 add constraint t1_ckh' || limit || ' check (c1 > '|| limit || ')';
  end loop;
end;
/

Received on Sat Mar 12 2005 - 12:48:47 CST

Original text of this message

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