Bonjour
voila mon trigger :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
CREATE OR REPLACE TRIGGER trigger_date_maj BEFORE UPDATE OR INSERT ON PERSONNES
 FOR EACH ROW  DECLARE  date_m VARCHAR(20); 
BEGIN 
if (:new.date_maj is NOT NULL) then date_m := :new.date_maj ; 
else
  if (:new.dat_creation is NOT NULL)
    then date_m := :new.dat_creation ; 
  else date_m:='01/01/1999';  
  end if ;
end if ; 
update personnes@dblink set date_maj = date_m where substr(id_personne,1,(length(id_personne)-1))= :new.id_personne ; END;
et l'erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Erreurs pour TRIGGER TRIGGER_DATE_MAJ :
 
LINE/COL ERROR
-------- -----------------------------------------------------------------
7/18     PLS-00103: Symbole "01" rencontrÚ Ó la place d'un des symboles
         suivants :
         * & = - + ; < / > at in is mod remainder not rem
         <exposant (**)> <> or != or ~= >= <= <> and or like LIKE2_
         LIKE4_ LIKEC_ between || multiset member SUBMULTISET_
         Symbole "*" a ÚtÚ substituÚ Ó "01" pour continuer.
 
7/28     PLS-00103: Symbole "" rencontrÚ Ó la place d'un des symboles
         suivants :
         * & = - + ; < / > at in is mod remainder not rem
         <exposant (**)> <> or != or ~= >= <= <> and or like LIKE2_
 
LINE/COL ERROR
-------- -----------------------------------------------------------------
         LIKE4_ LIKEC_ between || member SUBMULTISET_
         Symbole "*" a ÚtÚ substituÚ Ó "" pour continuer.
j'avoue que je comprend plus rien la