1.

The SQL mode to check for divide by zero error is ________________(a) STRICT_ALL_TABLES(b) ERROR_FOR_DIVISION_BY_ZERO(c) ERROR_DIVIDE_BY_ZERO(d) ERROR_WHEN_DIVIDE_BY_ZEROI had been asked this question in unit test.Question is from How MySQL Handles Invalid Data Values in portion Data Types of MySQL

Answer»

Right answer is (b) ERROR_FOR_DIVISION_BY_ZERO

To EXPLAIN: To enable the CHECK for divide by zero errors INT all the storage ENGINES, the SQL mode named ‘ERROR_FOR_DIVISION_BY_ZERO’ can be ENABLED. This is done by using SET sql_mode = ‘mode_name’.



Discussion

No Comment Found

Related InterviewSolutions