Correcion de new a NEW
This commit is contained in:
parent
9051360b8d
commit
937d843daa
@ -11,9 +11,9 @@ BEGIN
|
||||
SELECT MAX(ID_CIUDAD) INTO v_id_ciudad FROM CIUDAD;
|
||||
|
||||
IF v_id_ciudad IS NULL THEN
|
||||
: new.ID_CIUDAD := 1;
|
||||
: NEW.ID_CIUDAD := 1;
|
||||
ELSE
|
||||
: new.ID_CIUDAD := v_id_ciudad + 1;
|
||||
: NEW.ID_CIUDAD := v_id_ciudad + 1;
|
||||
END IF;
|
||||
END;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user