You can do this:
INSERT INTO t_chybar (pk_id, typ_chyby, cislo_debug ,miesto, chyba, datum, uzivatel)
VALUES (T_CHYBAR_ID_SEQ.nextval, v_typ_chyby, n_cislo_debug, v_miesto, v_chyba,sysdate, v_uzivatel);
If you want to use name.CURRVAL then at first it must be initialized by e.g.
select name.NEXTVAL ...;
Main Topics
Browse All Topics





by: ravindran_eeePosted on 2009-09-17 at 23:14:57ID: 25363232
You can use CURRVAL only after using NEXTVAL at least once. The same would apply for INSERT INTO statement as well. Since your sequence should have some value to fetch the current value