完成我有兩個表甲骨文警告:執行與警告
Orders(ID,ORDERDATE,DELIVERYDATE,GOODID,QUANTITY,COLLECTIONFROM,DELIVERYTO,NOTES)
和
ROLLINGSTOCK_ORDER(ORDERID,ROLLINGSTOCKID,DEPARTUREDATE,DELIVERYDATE,ROUTEID)
我創建了一個觸發器ROLLINGSTOCK_ORDER
更新DELIVERYDATE時DELIVERYDATE在Orders
CREATE OR REPLACE TRIGGER TRIGGER_UpdateDeliveryDate
BEFORE UPDATE OF DELIVERYDATE ON Orders
FOR EACH ROW
BEGIN
then
UPDATE LOCOMOTIVE_DRIVER ld
set ld.DELIVERYDATE = :new.DELIVERYDATE
where ld.orderid = :new.id
end if;
END;
更新
當我運行它時,我收到以下消息
警告:執行與 警告TRIGGER TRIGGER_UpdateDeliveryDate編譯完成。
的警告並沒有給我任何信息,以便
我怎麼能看到警告的細節?
觸發器似乎對我來說可以發現問題嗎?
感謝
http://stackoverflow.com/questions/2678102/create-a-trigger-that-updates-a-column-on-one-table-when-a-column-in-another-tab的可能重複 – APC 2010-04-25 13:48:00