-1
create or replace trigger employee_age_constraint
before insert on employee
for each row
begin
  if floor(months_between(current_date,:New.employee_birthdate)/12) < 13 then 
    raise_application_error(123123, 'asf')
  end if; 
end;

我在 Oracle SQL 开发人员上不断收到此代码的错误,我不知道为什么,请帮助!

4

1 回答 1

0

You have to insert ; after : raise_application_error(123123, 'asf')

you must end your line with this. have a good time.

于 2014-04-25T10:01:04.493 回答