sql se nulo então 0
SELECT IFNULL( column_name , 0 )
FROM table_name
Trevorpergliamici
SELECT IFNULL( column_name , 0 )
FROM table_name
SELECT ISNULL( column_name , 0 )
FROM table_name