0
我試圖從select語句輸入更新中的最後一個值。我試過下面的查詢,但得到了錯誤:這給了我錯誤:缺少右括號。選擇要更新的值
update dt2112b2.postgraduate_order set order_total =
(select item_cost * order_quantity
FROM dt2112b2.order_stock, dt2112b2.postgraduate_order
WHERE dt2112b2.order_stock.menu_item =
dt2112b2.postgraduate_order.menu_item and ROWNUM <=1
ORDER BY postgraduate_order.order_id desc);
它的工作原理。感謝磨坊! :) – Michael