SQL replace all NULLs

后端 未结 9 576
醉酒成梦
醉酒成梦 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 11:46

    You have to manually specify each column in SELECT statement and use ISNULL() function:

    SELECT ISNULL(columnName, 0), ... yes all of them
    

提交回复
热议问题