CONCAT'ing NULL fields

前端 未结 11 869
小鲜肉
小鲜肉 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 01:16

    In mysql isnull wont work some time. try IFNULL(),

    CONCAT(IFNULL(FirstName,''),IFNULL(LastName,''),IFNULL(Email,''))
    

提交回复
热议问题