I want to create a synonym for a sequence in oracle and fetch currval
from it.
I created a synonym using this statement.
CREATE SYNONYM NUMGEN FOR MY_SEQ;
when I fetch the currval
or extval
from NUMGEN
it generate error, synonym doesn't exist.
SELECT NUMGEN.currval FROM dual;
Can anyone help me to fetch currval
from synonym.