1.

Which among the following is the correct syntax for defining “Constraint Check” in Mysql?(a) genderchar(1)check( gender IN (‘M’, ‘F’)),(b) gender char (1) check,(c) gender char (1) check ( gender ),(d) none of the mentionedThe question was posed to me in class test.Asked question is from Table Creation topic in section Using SQL to Manage Data of MySQL

Answer»

Correct choice is (a) genderchar(1)check( gender IN (‘M’, ‘F’)),

EXPLANATION: Check CONSTRAINT CONSTRAINS the allowable values for a particular column.



Discussion

No Comment Found

Related InterviewSolutions