By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,348 Members | 1,397 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,348 IT Pros & Developers. It's quick & easy.

renumber index/key field?

P: n/a
Wm
I just imported a CSV file into mySQL using PHPmyAdmin. With deletions,
etc., the numbering is now very "intermittent" on the key field. Is there a
way for me to delete all existing autonum key values and renumber them
sequentially?

Thanx,
Wm

Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Make sure the key field in mySQL is set as AutoNumber then when u import from your CSV dont import the key field mySQL
will create sequential autonum key values to fill in the gap.
"Wm" <LA*******@hotmail.com> wrote in message news:3c************************@news.easynews.com. ..
I just imported a CSV file into mySQL using PHPmyAdmin. With deletions,
etc., the numbering is now very "intermittent" on the key field. Is there a
way for me to delete all existing autonum key values and renumber them
sequentially?

Thanx,
Wm

Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.