H
H
Hohula2018-02-12 12:56:26
SQL
Hohula, 2018-02-12 12:56:26

Why doesn't check work?

There is a column
5a81642494add439028011.png
. I create such a restriction on its filling
5a8162c4be823603678629.png
(checking for filling in the status of a bank cell with the words only "closed / open"),
but as we can see, it does not work during test filling
5a81636d18e6b411674684.png
when trying to delete, a famous error is created.
5a8163e0c824a734777234.png
What is the problem? Maybe the condition is not created at all? The syntax is correct!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2018-02-12
@Hohula

The CHECK clause is parsed but ignored by all storage engines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question