 create or replace trigger b12_sal
 before insert or update on b12
 for each row
 when(old.sal<2000)
 begin
 if inserting then
 raise_application_error(-20500,'sal should be >2000');
 end if;
 end;
/
