PLS-00103:遇到符号“POST_VACANT_LIST”

时间:2014-04-01 12:59:52

标签: oracle plsql syntax-error

这个触发器有什么问题

我需要为taxi_vehiclestatus表中的vehicle_id,status1列的每次更新编写一个触发器,并使用新值执行名为post_vacant_list的stord过程

create or replace trigger vacant_list
    after update of vehicle_id,status1
    on taxi_vehiclestatus
    for each row
    begin
    exec post_vacant_list(:new.vehicle_id, :new.status1);
    end;
    /

2/6

 2/6     PLS-00103: Encountered the symbol "POST_VACANT_LIST" when expecting one of the following:
      := . ( @ % ;
      The symbol ":=" was substituted for "POST_VACANT_LIST" to continue.

1 个答案:

答案 0 :(得分:1)

你不能在这里使用exec。只需使用不带exec的程序名称:

post_vacant_list(:new.vehicle_id, :new.status1);