trigger: prob de compilation
voila mon trigger :
Code:
1 2 3 4 5 6 7 8
| CREATE OR REPLACE TRIGGER trigger_codeb BEFORE UPDATE OR INSERT ON SUPPORTE FOR EACH ROW
DECLARE
sub_id VARCHAR(20);
BEGIN
select id_personne into sub_id from porteur, supporte where porteur.id_carte=supporte.id_carte and porteur.id_carte= :new.id_carte;
update asynchrone@dblink1 set codebar= :new.codeBar where id_personne= substr(sub_id,1,(length(sub_id)-1))) ;
END ; |
et l'erreur :
Code:
1 2
| PL/SQL: SQL Statement ignored
PL/SQL: ORA-00933: la commande SQL ne se termine pas correctement |