我在两个单独的表中有两个字段需要更新为相同的值。没有程序等。这可能在单个查询中吗?
工作声明:
UPDATE product,product_shop SET
product_shop.price='737.96',
product.price='737.96',
product_shop.wholesale_price='479.67',
product.wholesale_price='479.67'
WHERE
product_shop.id_product=product.id_product AND
product_shop.id_product=14;
我所希望的:
UPDATE product,product_shop SET
product_shop.price=product.price='737.96',
product_shop.wholesale_price=product.wholesale_price='479.67'
WHERE
product_shop.id_product=product.id_product AND
product_shop.id_product=14;