我不知道问题出在哪里。使用MySQL 5.0版本时,尝试运行以下MySQL更新查询时出现编译错误:
UPDATE b
SET b.mapx = g.latitude,
b.mapy = g.longitude
FROM business AS b
INNER JOIN business_geocode g ON b.business_id = g.business_id
WHERE (b.mapx = '' OR b.mapx = 0) AND
g.latitude > 0
所有字段名称都是正确的。有什么想法吗?