I try to replace null value with string 0000
SELECT customer_id
FROM customer c
LEFT JOIN user u ON u.idc = c.id
WHERE deleted = 0
I try with
IFNULL(c.customer_id,'0000')
COALESCE(c.customer_id,'0000')
REPLACE(c.customer_id,'','0000')
but don't work.
Result should be:
(Before) (After)
null 0000
1234 1234
0000
What should I do ?