SQL-IFNULL ()

MySQL IFNULLFunction which takes two arguments, if not NULL, the first parameter is returned, otherwise, IFNULLthe function returns the second parameter.

grammar:

IFNULL(expression_1,expression_2);

If expression_1not NULL, then IFNULLthe function returns expression_1; otherwise it returns expression_2the result.

IFNULLFunction returns a string or a number depending on the context.

Guess you like

Origin www.cnblogs.com/yaoze2018/p/11355493.html
SQL