Hi I am trying to use the CHECK constraint to stop one row from being larger than the other.
create table myTable (
begin int(10),
end int(10),
check (begin < end)
);
The table is created however there is no constraint being applied when inserting rows.
Any help on what I'm doing wrong would be great.
NULLs, andNULLtreatment by constraints can surprise some people, if that's a factor.