SQL replace all NULLs

后端 未结 9 585
醉酒成梦
醉酒成梦 2020-12-09 11:34

I have a big table with some NULLs in it. What is the easiest possible way to select from the table with 0\'s instead of NULLs.

Or if there is no easy way to do that

9条回答
  •  渐次进展
    2020-12-09 12:08

    Despite your reluctance to do so,

    ISNULL(FieldName,0) AS FieldName
    

    for each column is the correct way to handle this.

提交回复
热议问题