If you are using tables of the MyISAM type, the auto-increment goes up every time you
insert,
regardless of any deletes. The only way to reset it is to drop and re-create the table
or do a
delete from table command with no where clause. ISAM tables do not do this. Read up
in the manual
on table types and decide which is best for you. AFAIK there is no pack option for
MyISAM.
# Nathan
- Original Message -
From: savaidis [EMAIL PROTECTED]
To: MySQL list (E-mail) [EMAIL PROTECTED]
Sent: Monday, February 04, 2002 12:19 PM
Subject: renumbering auto-increment?
Hello all !
I see it's a very busy list so I will try to by short to my first question:
1) Is there a way to put the REAL numbers of rec in the ID=auto-increment? I
made some tests so this number is higher than total recs of the
table.(export/import to text doesn't help)
The Rec_num is stored somewhere? Or is there a pack command?
2) I use MySQLfront just for a couple of days. I find it very usefull (has
to be written in Delphi) Is this the best freeware for this job or is there
a better one ?
Thanks
Makis
Thessaloniki
Makedonia
Greece
-
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
-
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php