我使用这个查询将我所有的值插入到这个数据库中:
INSERT INTO products ($fields) VALUES ($values)
但是,我尝试对 UPDATE 使用相同的格式:
UPDATE products SET ($fields) VALUES ($values) WHERE sku = '$checksku'
...并且我得到一个语法错误:
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 '('product,make,model,' at line 1
我想不通。将不胜感激任何帮助。谢谢。