CHECK constraints for limiting the range of values in the column.
The original table:
Now you want to constrain the gender of this column is only allowed male or female.
step:
1、
2、
3、
4、
5、
ctrl + s to save it,
Not now free to modify the sex.
carry out.