Google News
logo
MySQL - Quiz(MCQ)
What is the SQL mode to check for divide by zero error?
A)
STRICT_ALL_TABLES
B)
ERROR_FOR_DIVISION_BY_ZERO
C)
ERROR_DIVIDE_BY_ZERO
D)
ERROR_WHEN_DIVIDE_BY_ZERO

Correct Answer :   ERROR_FOR_DIVISION_BY_ZERO


Explanation : 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’.

Advertisement