我的查询设置如下:
SELECT tblOrderItems.Quantity * tblItem.Price AS result
FROM tblOrderItems
LEFT JOIN tblItem
ON tblOrderItems.Pizza_Code = tblItem.ItemCode
我如何做到这样才能产生'结果'查询结尾处显示在字段tblOrderItems.Line Price
中答案 0 :(得分:0)
UPDATE tblOrderItems LEFT JOIN tblItem
ON tblOrderItems.Pizza_Code = tblItem.ItemCode
SET tblOrderItems.[Line Price] = tblOrderItems.Quantity * tblItem.Price