mysql - How to do an SQL update with a multi subrequest inside? -


i :

update `data` d    set map_lat, map_lon =      (select latitude, longitude  `maps_city` c c.zipcode =  d.zipcode) 

how can sql ?

thanks

have tried like

update  `data` d, `maps_city` c set d.map_lat = c.latitude,      d.map_lon = c.longitude c.zipcode =  d.zipcode 

have @ update syntax , multiple-table syntax


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -