st_setsrid(st_makepoint(coalesce(c.“经度”,p.“Lon”), coalesce(c.“纬度”,p.“Lat”)),4326)
COALESCE函数是返回参数中的第一个非null的值,它要求参数中至少有一个是非null的,如果参数都是null会报错。
st_setsrid(st_makepoint(coalesce(c.“经度”,p.“Lon”), coalesce(c.“纬度”,p.“Lat”)),4326)
COALESCE函数是返回参数中的第一个非null的值,它要求参数中至少有一个是非null的,如果参数都是null会报错。