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

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

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

google shop client API returns 400 bad request error while adding an item -