Replacing NULL with 0 in a SQL server query

后端 未结 12 1236
情书的邮戳
情书的邮戳 2020-11-28 02:39

I have developed a query, and in the results for the first three columns I get NULL. How can I replace it with 0?

  Select c.rund         


        
12条回答
  •  旧时难觅i
    2020-11-28 03:07

    Wrap your column in this code.

     ISNULL(Yourcolumn, 0)
    

    Maybe check why you are getting nulls

提交回复
热议问题