SQL Server String Concatenation with Null

后端 未结 10 800
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 13:51

I am creating a computed column across fields of which some are potentially null.

The problem is that if any of those fields is null, the entire computed column will

10条回答
  •  孤独总比滥情好
    2020-11-27 14:31

    Use COALESCE. Instead of your_column use COALESCE(your_column, ''). This will return the empty string instead of NULL.

提交回复
热议问题