将结果查询到字段中

时间:2016-05-29 14:08:48

标签: ms-access

我的查询设置如下:

SELECT tblOrderItems.Quantity * tblItem.Price AS result
 FROM tblOrderItems
LEFT JOIN tblItem
   ON tblOrderItems.Pizza_Code = tblItem.ItemCode

我如何做到这样才能产生'结果'查询结尾处显示在字段tblOrderItems.Line Price

1 个答案:

答案 0 :(得分:0)

UPDATE tblOrderItems LEFT JOIN tblItem
   ON tblOrderItems.Pizza_Code = tblItem.ItemCode
SET tblOrderItems.[Line Price] = tblOrderItems.Quantity * tblItem.Price