Why does this trigger fail? It says invalid identifier

风流意气都作罢 提交于 2019-12-02 13:39:31

Oracle can see your table structures. We can't. I'm betting Oracle sees the problem in your code.

It should point to the first line with the error. If not, select * from user_errors;

Maybe your ORDERS table doesn't have SHIP_DATE (since the first statement talks about EXPECTED_SHIP_DATE).

Not an Oracle guy, but shouldn't you use

:OLD.SHIP_DATE

or

:NEW.SHIP_DATE

and

:OLD.ORDER_DATE

or

:NEW.ORDER_DATE

refer: Oracle's trigger doc

I'm sorry,Why not create o BEFORE INSERT trigger on orders table? when create BEFORE INSERT trigger,if add a new row in orders table,Can use .NEW.EXPECTED_SHIP_DATE,.NEW.EXPECTED_RECEIVE_DATE update orders table. Don't create materialized view on orders

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!