數據庫--sqlserver--sqlserver 查詢 值若是爲NULL則顯示0-解決方法

方法1:spa isnull(字段名稱,0) as 字段名稱it --字符型 select isnull(mycol,'0') as newid from mytable --整型 select isnull(mycol,0) as newid from mytable 方法2:io columnName爲字段名table case when columnName is null then 0 e
相關文章
相關標籤/搜索