CONCAT(IFNULL(t1.CITYNAME,''),IFNULL(t1.AREANAME,''),IFNULL(t1.STREETNAME,''),IFNULL(t1.ADDRESS,''))addressDetail
因为mysql concat这个函数如果其中一个字段出现null就会返回null
所以这个需要采用ifnull函数 记下
CONCAT(IFNULL(t1.CITYNAME,''),IFNULL(t1.AREANAME,''),IFNULL(t1.STREETNAME,''),IFNULL(t1.ADDRESS,''))addressDetail