当前位置:Gxlcms > mysql > mysql中将null值转换为0的语句_MySQL

mysql中将null值转换为0的语句_MySQL

时间:2021-07-01 10:21:17 帮助过:9人阅读

bitsCN.com


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 googleCampaignId=23331401

bitsCN.com

人气教程排行