gpt4 book ai didi

php - 更新查询不起作用的问题

转载 作者:太空宇宙 更新时间:2023-11-03 12:10:15 25 4
gpt4 key购买 nike

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 'WHERE `id_product` = 9' at line 1

UPDATE `ps_product` SET `price` =  WHERE `id_product` = 9

最佳答案

您的 sql 中缺少价格值:

UPDATE `ps_product` SET `price` =  WHERE `id_product` = 9
^^^^

关于php - 更新查询不起作用的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24650088/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com