MySql multiple fields are combined into one field

CONCAT(IFNULL(t1.CITYNAME,''),IFNULL(t1.AREANAME,''),IFNULL(t1.STREETNAME,''),IFNULL(t1.ADDRESS,''))addressDetail


Because the mysql concat function will return null if one of the fields appears null
, so this needs to use the ifnull function.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326645911&siteId=291194637