Home » MYSQL » Mysql Setup » Question
  1. What is the SQL mode to check for divide by zero error?
    1. ERROR_WHEN_DIVIDE_BY_ZERO
    2. ERROR_DIVIDE_BY_ZERO
    3. STRICT_ALL_TABLES
    4. ERROR_FOR_DIVISION_BY_ZERO
    5. 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’.



Your comments will be displayed only after manual approval.