Hi Friends,
Thanks all for the last solution.
How do i get the last sequence number without calling the nextval.
When i call currval without calling the nextval i get the following error...
Code:
select LOSS_EVT_ID_SEQ.CURRVAL from dual
ORA-08002: sequence LOSS_EVT_ID_SEQ.CURRVAL is not yet defined in this session
Is there any way to fetch last sequence number?
Thanks in advance,
Amit