连表更新

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

上一篇:leetcode 766. 托普利茨矩阵


下一篇:【物理应用】基于matlab非序贯蒙特卡洛法评估风电系统【含matlab源码 766期】