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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -