Subject | CHECK Constraints (was: Re: [firebird-support] Re: Checking periods don't overla |
---|---|
Author | peter_jacobi.rm |
Post date | 2004-06-15T12:39:31Z |
Hi Steffen,
IMHO your re-written statement is not equivalent at all.
--- "Steffen Heil" <lists@s...> wrote:
equal example in Gulutzan's "SQL-00 complete, really".
It's just the atomicity of each SQL statement, which is the
core point.
matching the updates in mytable. Where's the problem?
Regards,
Peter Jacobi
IMHO your re-written statement is not equivalent at all.
--- "Steffen Heil" <lists@s...> wrote:
> I want to show with this example, that uniqueness MUST prevail betweenThere is no "in between" in Martijn's original examples and the nearly
> updates and MAY NOT be deferred.
equal example in Gulutzan's "SQL-00 complete, really".
It's just the atomicity of each SQL statement, which is the
core point.
> CREATE TABLE mydetailsBy way of ON UPDATE CASCADE, all rows of mydetails get updated,
> (
> INTCOL INTEGER NOT NULL
> )
> COMMIT;
> ALTER TABLE mydetails ADD CONSTRAINT xxx FOREIGN KEY (INTCOL) REFERENCES
> mytable (INTCOL) ON DELETE CASCADE ON UPDATE CASCADE;
> COMMIT;
> INSERT INTO mydetails VALUES (1);
> INSERT INTO mydetails VALUES (2);
> INSERT INTO mydetails VALUES (3);
> COMMIT;
>
> Now, what should happen upon the execution of the second UPDATE command?
matching the updates in mytable. Where's the problem?
Regards,
Peter Jacobi