Sequence Last Number doesn't match with currval
749382Jan 24 2011 — edited Jan 24 2011Hi,
I have a sequence and i am using that in a procedure to insert records.Often the procedure throws error like primary key violated.
When i checked the last number used by the sequence it gave me as 27331 and the currval of the sequence as 27312.
Please advice us to rectify this.