在尝试对一个大表执行查询后,我出现了一个奇怪的错误:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near /*100,3), % ) AS
Percentage
FROM INFORMATION_SCHEMA.PROFILING WHERE QUERY_ID= at line 1
这是什么意思?
EDIT==这是查询
update cities w, states s set w.region_id = s.id
where s.code = w.region and w.country_id = s.country_id
城市表约有300万个条目,州表约有6000个条目
作为记录,我使用mysql客户端Navicat执行了这个查询。