Subject | Re: [ib-support] check constraint stops working after backup and restore |
---|---|
Author | Tomas Michalik |
Post date | 2002-09-12T11:27:30Z |
Raymond Kennington wrote:
many places). Defining this constraint on a domain saves (actually would
save :-| ) work. And then there is still the problem with necessity of
creating indexes for foreign keys ...
Regards,
Tom
=================================
Tomas Michalik
ProCA, s. r. o.
V Luzich 818, Praha 4
Czech Republic
e-mail: michalik@...
tel: +420 2 67283446
>But then you have to create many foreign keys (we use this domain on
> Tomas Michalik wrote:
> >
> > my problem is:
> > I create a domain with check constraint.
> >
> > e.g.
> > ALTER DOMAIN D_TRANSPORT_TYPE_ID
> > ADD CHECK (exists
> > (
> > select *
> > from transport_types
> > where tt_id = value
> > ))
> >
> Not an answer to your question, but I'd use a foreign key constraint instead of a domain.
many places). Defining this constraint on a domain saves (actually would
save :-| ) work. And then there is still the problem with necessity of
creating indexes for foreign keys ...
Regards,
Tom
=================================
Tomas Michalik
ProCA, s. r. o.
V Luzich 818, Praha 4
Czech Republic
e-mail: michalik@...
tel: +420 2 67283446