Suppose: table_name = t1
Check constraint on column c1 is (Y, N, '').
But when I manually inserted any value in c1 column other than above valid values (like A), database won't give any error and committed successfully.
How do I avoid this?
Suppose: table_name = t1
Check constraint on column c1 is (Y, N, '').
But when I manually inserted any value in c1 column other than above valid values (like A), database won't give any error and committed successfully.
How do I avoid this?
Assuming "The CHECK clause is parsed but ignored by all storage engines.", I have changed my check constraint to accept only Y and N. I also need to change the code, where i declare and initiallize the variable corresponding to this column.
Thanks for all your replies.