|
|
Question : How to set identity field to it's init value?
|
|
I know the command "truncate table" in MS SQL Server can reset identity field to it's init value,but how to do in sybase?It seemed "truncate table" can not reset it!
thanks
|
Answer : How to set identity field to it's init value?
|
|
In the SQL Anywhere family of Sybase products, the autoincrement count will reset itself only after the database has been cycled. After truncating the table, unload the database from the server and then reload the database. The next insert will start over at 1.
I don't know if this is true for the enterprise database product
|
|
|
|