|    
			
				10/04/2008, 07:08
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: abril-2008 
						Mensajes: 3
					 Antigüedad: 17 años, 6 meses Puntos: 0 |  | 
  |  Error Trigger  
  Hola, estoy intentando crear un trigger en oracle aparentemente sencillo, pero me da error, me dice que hay una secuencia de SQL no válida. Creo que no es así, por eso recurro a vosotros. Estoy utilizando el ADVANCED QUERY TOOL. Este es el código:
 Create or Replace Trigger SIGRADD.Insertar_Peticionario
 After Insert
 on SIGRADD.PERSONAL
 Referencing  old as OLD new as NEW
 For each Row
 begin
 if (:NEW.CCATEGORIA in ('MG','JS')) then
 insert into SIGRADD.PERSONAL_PETICIONARIOS (CPERSONAL, cpeticionario)
 values (:NEW.CPERSONAL, 00001);
 end if;
 
 if (:NEW.CCATEGORIA in ('RA') then
 insert into SIGRADD.PERSONAL_PETICIONARIOS (CPERSONAL, cpeticionario)
 values (:NEW.CPERSONAL, 000228);
 end if;
 end;
 
 ¿alguien puede echarme una mano? Gracias.
     |