mysql update select

update ey_dq_copy a inner join (select b.cityid,b.xian from ey_dq_copy b) c set a.city = c.cityid WHERE a.area = c.xian and prov = city and city = xian;
update
ey_dq_copy a inner join (select b.cityid,b.xian from ey_dq_copy b) c set a.city = c.cityid WHERE a.pov = c.xian and city = xian;

update
ey_dq_copy a inner join (select b.cityid,b.xian from ey_dq_copy b) c set a.city = c.cityid WHERE a.city = c.xian and pid <> 0;


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章