Replacing null with zero

前端 未结 3 722
情歌与酒
情歌与酒 2021-01-23 04:57

Hi I have following select command in SQL Server. I am trying to change it so if b.bId is null i want to assign it 0 value. So it displays 0 in the field.

selec         


        
3条回答
  •  终归单人心
    2021-01-23 05:34

    As another alternative you could execute this sql at your ts table

    update ts
    set id = ''
    where id is null
    

提交回复
热议问题