1.

Which mode prevents entry of the ‘zero’ date value in strict mode?(a) SUPPRESS(b) NO_ZERO_DATE(c) PREVENT(d) NO_ZERO_IN_DATEThis question was posed to me in a national level competition.The doubt is from How MySQL Handles Invalid Data Values in division Data Types of MySQL

Answer»

Right choice is (b) NO_ZERO_DATE

For explanation: The ‘NO_ZERO_DATE’ PREVENTS the entry of the ‘zero’ DATE value in strict mode. In MySQL, to suppress errors, the IGNORE KEYWORD is used with INSERT or UPDATE statements.



Discussion

No Comment Found

Related InterviewSolutions