Home » MYSQL » Create Tables » Question
  1. Which among the following is the correct syntax for defining “Constraint Check” in Mysql?
    1. gender char (1) check,
    2. gender char (1) check ( gender ),
    3. gender char(1) check( gender IN (‘M’, ‘F’)),
    4. All of above
    5. None of these
Correct Option: C

Check constraint constrains the allowable values for a particular column.



Your comments will be displayed only after manual approval.