A
Abder-Rahman Ali
In "The Rails Way" book, the following is mentiond in Chapter
(6):Working with ActiveRecord
"Also by convention, ActiveRecord will expect an id column to use as
primary key. It should be an integer and [[incrementing of the key
should be managed automatically by the database server when creating new
records]]."
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......
Thanks.
(6):Working with ActiveRecord
"Also by convention, ActiveRecord will expect an id column to use as
primary key. It should be an integer and [[incrementing of the key
should be managed automatically by the database server when creating new
records]]."
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......
Thanks.