java - Reset primary key counter in JDBC -


i how can reset primary key counter in jdbc:derby code? want reset when delete database records, leave tables intact. when that, primary key counter not reset , continue ended. thinking this

alter sequence <tabname>_<id>_seq restart 1 

will work? , if yes work correctly?

this explained in columnalteration section of alter table statement section in derby reference manual.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -