-
What is the SQL mode to check for divide by zero error?
-
- ERROR_WHEN_DIVIDE_BY_ZERO
- ERROR_DIVIDE_BY_ZERO
- STRICT_ALL_TABLES
- ERROR_FOR_DIVISION_BY_ZERO
- None of these
Correct Option: B
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’.