我尝试执行查询但收到错误。这是我的问题:
UPDATE
prepares_for_exam
SET
prepares_for_exam.exam_id = product.id
FROM
prepares_for_exam,
product
WHERE
prepares_for_exam.id = product.prepares_for_exam_id
我收到错误:
您的SQL语法有错误;检查与您的MySQL服务器版本相对应的手册,以便在第1行的“FROM prepares_for_exam,产品WHERE prepares_for_exam.id = product.prepares_fo”附近使用正确的语法
我使用FROM子句做了100次更新查询,从来没有遇到过问题......我的错是什么?!?