salut,
 
j'ai creer ce trigger
Code :
 - create or replace trigger xtest1
 - before insert on  test1
 - for each row
 - begin
 - if :NEW.charcol='x' then
 - test1.charcol:='vide';
 - end if;
 - end;
 
  | 
 
donc si il trouve x dans mon insert , il le remplace par vide.
Mais que je fais un insert
Code :
 - insert into test1 (clé,charcol) values (1,'x')
 
  | 
 
ça fonctionne pas et j'ai ce message d'erreur
Citation :
 
 Error starting at line 1 in command:
 insert into test1 (clé,charcol) values (1,'x')
 Error at Command Line:1 Column:12
 Error report:
 SQL Error: ORA-04098: trigger 'ZIP.XTEST1' is invalid and failed re-validation
   | 
 
voici le script de ma table
Code :
 - create table test1 (clé integer,charcol varchar(5) not null);
 
  | 
 
je comprend pas pourquoi ?
est ce que quelqu'un pourrait m'eclairer ?
 
Merci