update tb_city t2 join (
select a2,count(1),group_concat(a4) as a4,group_concat(a5) as a5 from weidu where a3 is null GROUP BY a2 HAVING count(1) = 1
) t1 on t1.a2 = t2.city_name set t2.lng = a4,t2.lat = a5
select * from (
select a2,count(1),group_concat(a4) as a4,group_concat(a5) as a5 from weidu where a3 is null GROUP BY a2 HAVING count(1) = 1
) t1 join tb_city t2 on t1.a2 = t2.city_name