我想不過,我收到此錯誤使用該查詢SQL UPDATE JOIN
UPDATE products
SET products.product_price = '87.00000'
FROM products
INNER JOIN product_category
ON products.product_id = product_category.product_id
WHERE product_category.category_id = '64'
:#1064 - 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 'FROM table products INNER JOIN table product_category ON prod' at line 3
我看不出有任何語法錯誤。我從這個論壇上的例子中提出了這個查詢。
http://stackoverflow.com/questions/8057565/mysql-update-statement-inner-join-tables –