Advanced Search

Posted by: Andrea Ponzo ()
Date: March 13, 2009 09:33AM

When I try to insert a record in a table with the 'id' name field that is a primarykey AUTOICREMENT after the 'BEGIN;' command, and then I execute a ROLLBACK

I lost the 'id' increment....because the next insert 'id' that I try with a COMMIT
is = (last_id value + 2)

there is a way to avoid to lose this increase?

Thank you

Options: ReplyQuote

Subject Views Written By Posted
AUTOINCREMENT & ROLLBACK 5109 Andrea Ponzo 03/13/2009 09:33AM
Re: AUTOINCREMENT & ROLLBACK 2216 Rick James 03/14/2009 02:18PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.