Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oracle PLS-00103:遇到符号“;职位空缺名单;_Oracle_Plsql_Syntax Error - Fatal编程技术网

Oracle PLS-00103:遇到符号“;职位空缺名单;

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

这个触发器怎么了

我需要为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_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,因此不能这样使用。