Unix Technical Forum

resetting auto-incremented field to start at zero

This is a discussion on resetting auto-incremented field to start at zero within the MySQL forums, part of the Database Server Software category; --> >> Ideally, your PK shouldn't have any meaning outside identifying the row. > Alternatively, the primary key can be ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 02-28-2008, 10:32 AM
Willem Bogaerts
 
Posts: n/a
Default Re: resetting auto-incremented field to start at zero

>> Ideally, your PK shouldn't have any meaning outside identifying the row.

> Alternatively, the primary key can be meaningful, that is
> identify an object in real life, like a PartNumber,
> SerialNumber or SocialSecurityNumber, in which case it
> can't autoincrement, of course.


No.

>> Ideally, your PK shouldn't have any meaning outside identifying the row.


Really, if you make your primary key meaningful in any other way than as
a primary key, you open a big can of nasty worms. The worms do not come
out immediately, but you can be sure they will.

regards,
--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com