Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Auto increment is a no-no?

Name: Anonymous 2010-07-21 13:45

Hello. I must confess that I am rather new at this. During my courses, I was taught to place an auto increment as an id field in my tables, when in need to.

However, recently, I heard someone comment that this is to be completely avoided. But I do not understand why. Perhaps anon could point me in the right direction?

Name: Anonymous 2010-07-21 15:45

>>7
Natural keys are elegant solutions only on homework assignments.
In real life the requirements change halfway through the project, and they end up causing you more work while providing no actual benefit.
As a bonus the insertion order is very often useful.

Name: Anonymous 2010-07-21 16:07

>>7
Back to your college SQL class, please.

Name: Anonymous 2010-07-21 16:29

>>7
Surrogate keys are a symptom of bad design.
Really?  Because I can't think of any better solutions for implementing Enterprise-grade applications such as Shiichan, MOTHERFUCKER.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List