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

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -