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 -

jsf - How to order SelectItems in custom renderer extending MyFaces HtmlMenuRenderer -

sql server - SQL, get max id of column -