IFNULL和isnull用法

語法
ISNULL ( check_expression , replacement_value )
參數
check_expression:
將被檢查是否爲 NULL的表達式。check_expression 能夠是任何類型的。
replacement_value:
在 check_expression 爲 NULL時將返回的表達式。replacement_value 必須與 check_expresssion 具備相同的類型。


在Mysql中,isnull只是用來判斷是否爲空,不能實現替換功能

參考於:http://www.cnblogs.com/alibai/p/3547494.htmlhtml

相關文章
相關標籤/搜索