テーブル用にこのトリガーをコンパイルしようとしましたが、このエラーが発生し続けます。
エラーメッセージ:
Compilation failed, line 4 (19:39:58) The line numbers associated with
compilation errors are relative to the first BEGIN statement. This
only affects the compilation of database triggers. PL/SQL: ORA-00923:
FROM keyword not found where expected
Compilation failed, line 4
(19:39:58) The line numbers associated with compilation errors are
relative to the first BEGIN statement. This only affects the
compilation of database triggers. PL/SQL: SQL Statement ignored
これは私のトリガーです:
Create or Replace Trigger NEWSALARY
before insert or update on CREW
for each row
Declare
v_emphours AIRPLANE. EMPWORKINGHOURS%TYPE;
Begin
select EMPWORKINGHOURS into v_ emphours
from "AIRPLANE"
where AIRPLANEID =:NEW."AirPlaneID";
if v_emphours > 8 then
:NEW."Salary":= :NEW."Salary"* 50;
end if;
End;
</p>