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
Post a Comment