Bonjour !!
j'ai un probleme avec ce trigger
qu'ya t il de faux ??
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 TRIG_B_AFTUPD AFTER UPDATE ON TABLE1 FOR EACH ROW BEGIN -- Suppr des anciennes occurences -- DELETE FROM TABLE1 WHERE NO=:NEW.no ; -- Insertion des nouvelles lignes INSERT INTO LOGUPD_T1 ( CH1, CH2, CH3) VALUES ( SELECT CH1,CH2,CH3 FROM TABLE1 WHERE NO=:NEW.NO ) ; END; / SHOW ERRORS;
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 ERROR : PLS-00103: Encountered the symbol "SELECT" when expecting one of the following: ( - + mod not null others <an identifier> <a double-quoted delimited-identifier> <a bind variable> avg count current exists max min prior sql stddev sum variance execute forall time timestamp interval date <a string literal with character set specification> <a number> <a single-quoted SQL string>
Partager