
October 19th, 1999, 06:54 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Insert a dummy record with the value of n-1 for the auto-increment field (instead of null) where n is the number you wish for the first record. After a legitimate record has been entered using null, you can delete the dummy record.
MySQL takes the value of the largest field and increments it. If no record exists the largest field is null which is interpreted to be 0. So the first record to be inserted would begin with 1.
|