Re: Updating the SQL key value
- From: Toby A Inkster <usenet200703@xxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Mar 2007 13:29:58 +0100
bill wrote:
I will add a autonumbering PK
Auto-numbered synthetic primary keys are the root of all evil. They usually
indicate a lazy approach to database design. There is almost always a
natural column or combination of columns that can be used as a primary key
without the need to add an extra, redundant numerical column which doesn't
contain any useful information.
Assuming that the you never plan on having two events that occur
concurrently, your "order" column is a perfect natural candidate key.
(Though it's a little poorly named, given that ORDER is a SQL keyword.)
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
.
- Follow-Ups:
- Re: Updating the SQL key value
- From: Gordon Burditt
- Re: Updating the SQL key value
- From: Erwin Moller
- Re: Updating the SQL key value
- References:
- Updating the SQL key value
- From: bill
- Re: Updating the SQL key value
- From: Erwin Moller
- Re: Updating the SQL key value
- From: bill
- Re: Updating the SQL key value
- From: Erwin Moller
- Re: Updating the SQL key value
- From: bill
- Updating the SQL key value
- Prev by Date: Re: Updating the SQL key value
- Next by Date: Re: Encoding/characterset/font family confusion
- Previous by thread: Re: Updating the SQL key value
- Next by thread: Re: Updating the SQL key value
- Index(es):
Relevant Pages
|