How can I use 'Check' statement to validate field value in mysql?
How can I use 'Check' statement开发者_开发百科 to validate field value in mysql?
look at this page, in the manual didn't discussed about check keyword
In MySql Workbench and Navicat for mysql, there is not exists any options to set constraints or check.
MySQL does not enforce CHECK constraints. It parses the check constraint clause, but silently ignores it. You'd have to use a trigger to validate data.
精彩评论