Oracle PLS-00103:遇到符号“;职位空缺名单;
这个触发器怎么了 我需要为taxi_vehiclestatus表中的vehicle_id、status1列的每次更新编写一个触发器,并使用新值执行一个名为post_Emptance_list的存储过程Oracle PLS-00103:遇到符号“;职位空缺名单;,oracle,plsql,syntax-error,Oracle,Plsql,Syntax Error,这个触发器怎么了 我需要为taxi_vehiclestatus表中的vehicle_id、status1列的每次更新编写一个触发器,并使用新值执行一个名为post_Emptance_list的存储过程 create or replace trigger vacant_list after update of vehicle_id,status1 on taxi_vehiclestatus for each row begin exec post_vacan
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.
您不能在此处使用exec。只需使用不带exec的过程名称:
post_vacant_list(:new.vehicle_id, :new.status1);
exec
是一个SQL*Plus,可用于执行单个PL/SQL语句。它不是PL/SQL,因此不能这样使用。