From: Markus Fischer Date: 2010-09-05T00:50:30+09:00 Subject: Re: ActiveRecord and incrementing the key Hi, On 04.09.2010 17:17, Abder-Rahman Ali wrote: > How does the database server manage the incrementing of the key? What is > meant here by the database server is what manages the incrementing of > the key? > > Is there an example that may make this point more clear. For example, > the following "database server" increments...... You need to consult your database documentation how to achieve this; it varies from one product to another. E.g. in MySQL it's using "auto_increment" on the primary key [1] HTH [1] http://dev.mysql.com/doc/refman/5.6/en/example-auto-increment.html