CONCAT'ing NULL fields

前端 未结 11 1066
小鲜肉
小鲜肉 2021-02-01 00:25

I have a table with three fields, FirstName, LastName and Email.

Here\'s some dummy data:

FirstName | LastName | Email
Adam        West       adam@west.c         


        
11条回答
  •  别跟我提以往
    2021-02-01 00:56

    You can always use the CONCAT_NULL_YIELDS_NULL setting..

    just run SET CONCAT_NULL_YIELDS_NULL OFF and then all null concatenations will result in text and not null..

提交回复
热议问题