mysql中將null值轉換為0的語句。本站提示廣大學習愛好者:(mysql中將null值轉換為0的語句)文章只能為提供參考,不一定能成為您想要的結果。以下是mysql中將null值轉換為0的語句正文
SELECT
IF(AVG(cai.conversionsRate) IS NULL,0,AVG(cai.conversionsRate))
AS conversionsRate
FROM campaign_info cai
WHERE insertTime BETWEEN '2011-02-01' AND '2011-02-04' AND 谷歌CampaignId=23331401