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

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -