"be consistent" | |
PerlMonks |
Re: Re: mysql auto_incremented idby cchampion (Curate) |
on Dec 17, 2003 at 20:12 UTC ( [id://315373]=note: print w/replies, xml ) | Need Help?? |
Not sure this is the best solution, Definitely not. Removing a primary key and recreating it will break the database referential integrity. BTW reusing the gaps in the primary key, as the OP wants, is not the smartest move either. I know a couple of methods to achieve that, but I also know half a dozen reasons not to do it. Therefore I'll keep the method for myself. In the meantime, I will just suggest leaving the primary key alone.
In Section
Seekers of Perl Wisdom
|
|