|
Trigger,Procedure
|
|||
---|---|---|---|
#18+
Esli ja meniaiu znachenie proc v tablize al_t_a_f_user,to mne vydetsia oshibka: Trigger ne dolgen etogo videti. Podskagite v chem moia oshibka? CREATE TRIGGER al_tr_proc AFTER UPDATE OF proc ON al_t_a_f_user REFERENCING OLD AS OLD_UPD NEW AS NEW_UPD FOR EACH ROW BEGIN IF (:new_upd.PROC = 1) THEN al_p_x; END IF; IF (:new_upd.PROC = 2) THEN al_p_y; END IF; END; / create procedure al_p_x as begin delete from t_daten where gj in (select distinct gj from i_daten) and periode in (select distinct periode from i_daten); insert into t_daten select * from i_daten; end; / create procedure al_p_y as begin delete from i_daten; insert into i_daten select * from t_daten where gj=(select gj from al_v_a_f_user) and periode=(select periode from al_v_a_f_user); end; / ... |
|||
:
Нравится:
Не нравится:
|
|||
30.10.2001, 12:46 |
|
|
start [/forum/topic.php?fid=52&fpage=2852&tid=1993496]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
68ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
42ms |
get tp. blocked users: |
2ms |
others: | 249ms |
total: | 407ms |
0 / 0 |