oracle触发器与group by

时间:2017-04-20 18:06:30

标签: sql

命令可能是触发器吗?

INSERT INTO MAIN_ORDER(ORDER_ID, ORDER_PRICE ) 
SELECT ORDER_ID, SUM(TOTALCOST) 
FROM ORDER_DETAIL 
GROUP BY ORDER_ID;

0 个答案:

没有答案