create or replace trigger monthreport
  after insert  on bponderation  
  for each row
  declare
begin
  delete from bmonth
  where bmonth.fmonth=to_char(sysdate,'mm');
end你的declare多此一舉
取消就可以
create or replace trigger monthreport
  after insert  on bponderation  
  for each row
begin
  delete from bmonth
  where bmonth.fmonth=to_char(sysdate,'mm');
end

解决方案 »

  1.   

    去掉declare试试
    create or replace trigger monthreport
      after insert  on bponderation  
      for each row
    begin
      delete from bmonth
      where bmonth.fmonth=to_char(sysdate,'mm');
    end;--加上分号应该没有问题了
      

  2.   

    不行呀!还是不行。我是在数据库-》方案-》源类型-》触发器里创建触发器的是不是其他地方要作什么,我按2,3楼做都是不行,我用的是10i正版的
    总是提示
    为什么总时提示  ‘ora-04079 无效的触发器说明’
      

  3.   

    ORA-04079: invalid trigger specification
        Cause: The create TRIGGER statement is invalid.
        Action: Check the statement for correct syntax.