select IFNULL(valor_unit,0) from tb_itens where id = 3
In the scenario where id = 3 does not exist in my table
SELECT
does not return '0' just keeps returning NULL,
I can not find the problem.
I have already tested with COALESCE
, but it continues to return null.