Well, oracle doesn’t allow to assign a sequence value to a PL/SQL variable as i := sq_sequence.NEXTVAL;(for some silly reason).