|
Create trigger
|
|||
---|---|---|---|
#18+
Здравствуйте! Второй день мучаю SQL+ от oracle 8.0.5 SQL> CREATE TRIGGER alt_insert AFTER INSERT ON alternative FOR EACH ROW 2 DECLARE 3 CURSOR cur_obj_lf IS 4 SELECT OBJECTS.OBJ_ID, LEAF.LF_ID 5 FROM OBJECTS, LEAF 6 WHERE OBJECTS.TOBJ_ID = LEAF.TOBJ_ID; 7 BEGIN 8 FOR obj_leaf IN cur_obj_lf LOOP 9 INSERT INTO PARAMS_VAL (ALT_ID, LF_ID, OBJ_ID, LV_VALUE, LV_SYMVALUE, LV_SESSION) 10 VALUES (:new.alt_id, obj_leaf.lf_id, obj_leaf.obj_id, 0, "", 0); 11 END LOOP; 12 END; 13 / CREATE TRIGGER alt_insert AFTER INSERT ON alternative FOR EACH ROW * ошибка в строке 1: ORA-00604: ошибка на рекурсивном SQL-уровне 1 ORA-01400: невозможно вставить NULL в ("SYS"."OBJ$"."NAME") --------- Простой курсор вроде CREATE OR REPLACE TRIGGER alt_delete BEFORE DELETE ON alternative FOR EACH ROW BEGIN DELETE FROM params_val WHERE alt_id = :old.alt_id; END; переваривается спокойно. --------- С надеждой, Shu. ... |
|||
:
Нравится:
Не нравится:
|
|||
24.08.2001, 11:40 |
|
|
start [/forum/topic.php?fid=52&fpage=2853&tid=1993549]: |
0ms |
get settings: |
10ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
57ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
29ms |
get tp. blocked users: |
2ms |
others: | 15ms |
total: | 151ms |
0 / 0 |