【发布时间】:2019-04-16 04:56:57
【问题描述】:
我想用多个内部连接查询来更新表,但是当我通过内部关键字附近的错误语法编写查询时
Update inventory_detail INNER JOIN inventory
ON inventory_detail.inventory_id = Inventory.Inventory_id
INNER JOIN Ingredients
ON Inventory.Inventory_id=Ingredients.invenotry_id
SET inventory_detail.Quantity=inventory_detail.Quantity-1
WHERE inventory_detail.loc_id =1 AND Ingredients.item_id=27 ;
【问题讨论】:
-
您使用的是什么版本的 SQL? [编辑[您使用该标签的问题。你也用 c# 标记它,但没有显示 c# 代码,只有 SQL
-
它是因为我使用的是 c# (sql) 的本地 B