I am using MySQL and here is a simple set of queries:
create table dcheck ( fdate date, sdate date, check (fdate <= sdate) ); insert into dcheck values ('2006-12-12','2003-12-12'); insert into dcheck values ('2003-12-12', '2006-12-12');
Here I expect the first insert statement to fail. But it is surprising that both queries pass and two tables are in the table.
Can someone explain why?
thanks
source share