Create some triggers so that my primary keys are autoincrementable at the time of inserting but at the time of executing my script everything executes well when you are going to execute the first trigger that is Trigger_idcomisario stays in a loop and begins to generate numbers Do you know what could be happening?
I'm using oracle 11g express
--secuencia
create sequence Secuencia_comisario
start with 1
increment by 1
nomaxvalue;
--Triggers
CREATE TRIGGER Trigger_idcomisario;
BEFORE INSERT ON comisario
FOR EACH ROW
BEGIN
SELECT Secuencia_comisario.NEXTVAL INTO :NEW.id_comisario FROM DUAL;
END;