Subject | Re: Checking periods don't overlap |
---|---|
Author | johnsparrowuk |
Post date | 2004-06-14T17:59:50Z |
Can a check constraint see other records? I thought they could only
see the fields in the current record?
--- In firebird-support@yahoogroups.com, "Martijn Tonies"
<m.tonies@u...> wrote:
see the fields in the current record?
--- In firebird-support@yahoogroups.com, "Martijn Tonies"
<m.tonies@u...> wrote:
> Hi John,the
>
>
> > You don't *need* to use a trigger, but using your solution has
> > same problem - if there is an uncommitted record in anotherand
> > transaction (with an overlapping time-period), you won't see it,
> > it won't see you.& MS SQL
> >
> > You'll both commit fine. And then you've got a problem.
>
> How about using a CHECK constraint? Doesn't that solve
> your problem?
>
> With regards,
>
> Martijn Tonies
> Database Workbench - developer tool for InterBase, Firebird, MySQL
> Server.
> Upscene Productions
> http://www.upscene.com