I have a query which add many thing in a expression. Like this select a+b+c+d+e ....
But some of them may be null and I want to treat null value as 0.
I know I can use IFNULL like select ifnull(a,0)+ifnull(b,0)+ifnull(c,0)+ifnull(d,0)+ifnull(e,0), but I have many queries and this seems laboursome.
Is there some easy way like a function to achieve the same result?
ifnull