📜  mysql 更新内部 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:02.107000             🧑  作者: Mango

代码示例1
UPDATE business AS b
INNER JOIN business_geocode AS g ON b.business_id = g.business_id
SET b.mapx = g.latitude,
  b.mapy = g.longitude
WHERE  (b.mapx = '' or b.mapx = 0) and
  g.latitude > 0