mysql null degeri degğiştirme
(SELECT SUM(vote) AS quest_sum FROM pt_quest_votes where pt_quest_votes.vote_quest_id = pt_quests.quest_id ) as vote
burada eger deger yoksa null degeri dönüy.
ben bunu deger null ise 0 yazdırmak istiyorm nasıl yapabilirim
SELECT IFNULL(SUM(vote),0) AS quest_sum FROM pt_quest_votes where pt_quest_votes.vote_quest_id = pt_quests.quest_id ) as voteTotal
arkadaşlar çözümü ifnull ile hallettim sum vote den eger null dönüyorsa 0 yazdır dedim IFNULL(SUM(vote),0)