[英]update table from other error in mysql XAMPP
I'm trying to update table from other but I got error this is my query 我正在尝试从其他表更新,但出现错误,这是我的查询
UPDATE items
SET items.Price = prix.Price from items,prix WHERE items.ID = prix.ID
There is no update ... from
Syntax. 没有语法
update ... from
。 You have to use update ... join
: 您必须使用
update ... join
:
UPDATE items join prix on items.ID = prix.ID
SET items.Price = prix.Price
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.