Home » MYSQL » Mysql Error handling » Question
  1. The SQL mode to check for divide by zero error is ________________.
    1. ERROR_DIVIDE_BY_ZERO
    2. ERROR_WHEN_DIVIDE_BY_ZERO
    3. ERROR_FOR_DIVISION_BY_ZERO
    4. STRICT_ALL_TABLES
    5. None of these
Correct Option: C

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.