On Feb 11, 7:57 pm, Thomas Mueller <[email protected]> wrote: > I wonder if other databases reset the identity if you truncate the table?
At least MySql does: http://dev.mysql.com/doc/refman/5.0/en/truncate-table.html For other storage engines, TRUNCATE TABLE differs from DELETE in the following ways in MySQL 5.0: ... The table handler does not remember the last used AUTO_INCREMENT value, but starts counting from the beginning. This is true even for MyISAM and InnoDB, which normally do not reuse sequence values. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
