2014-04-01 26 views
0

什麼錯這個觸發PLS-00103:出現符號「POST_VACANT_LIST」

我需要寫在taxi_vehiclestatus表vehicle_id的每次更新觸發,狀態1列和exec一個斯圖爾過程用新值

稱爲post_vacant_list
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

'exec'是一個SQL * Plus [命令](http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve022.htm)可用於執行單個PL/SQL語句。它不是PL/SQL [語言結構](http://docs.oracle.com/cd/E11882_01/appdev.112/e17126/reservewords.htm),所以不能像這樣使用。 – user272735

回答

1

你不能在這裏使用EXEC。只要使用的程序名稱,而不EXEC:

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