gpt4 book ai didi

mysql - 从 mysql XAMPP 中的其他错误更新表

转载 作者:行者123 更新时间:2023-11-29 11:16:56 24 4
gpt4 key购买 nike

我正在尝试从其他表更新表,但出现错误,这是我的查询

UPDATE items
SET items.Price = prix.Price from items,prix WHERE items.ID = prix.ID

最佳答案

没有 update ... from 语法。您必须使用update ... join:

UPDATE items join prix on items.ID = prix.ID
SET items.Price = prix.Price

关于mysql - 从 mysql XAMPP 中的其他错误更新表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39569377/

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