|
As long as it is unique I think it can be quite useful. Most of thetables I work with outside of DB2 are keyed by sequence #. If you work
with a Rail application, most of the unique keys on tables are assumed tobe sequences and named 'id'. In fact, if you DO use sequences and
the column name is 'id', Rails pretty much works right out of the box.make up the unique key. If the table had a column that was a sequence,
I have table on the i from a "legacy" application that has 8 fields that
my I/O would be SO much easier to accomplish. Issuing an update to tablex where id = 34423 is a lot easier than update tablex where
key1='foo1' and key2 = 'bar1', etc....reduce costs. In the MSSQL application I work with, every table has a
As for a "business" case, simplifying I/O could simplify development and
sequence column named "id" (even though it isn't a Rails app, it is a .Netapp). Initially I found it confusing but as I work with the tables
more, my code can follow the pattern of using the sequence as the uniquekey to the row making for greater consistency in SQL update statements
and my model code.forward, all my new tables will have sequences that uniquely identify
Perhaps it boils down to coding and DB design preferences. But, going
the record.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.