IFERROR function in MySQL -


is there function iferror in mysql. example:

iferror(25/0,9) 

i tried on phpmyadmin said such function iferror not exist. appreciate help

you can reach similar results ifnull:

if answer not valid, defaults null. ifnull give alternative answer:

your example (in case):

 select ifnull(25/0,9); 

gives result: 9


Comments