What would be the best way to pre-populate a database with 100 empty fields and then begin the Auto_Increment?
What I mean to say, I want to reserve the first 100 userfields (ie UIDs which are auto_increment) 0 – 100 for "special users" and have the AUTO_INCREMENT start at 101 (as an example).
Obviously I can't set Auto_Increment to 101 as then it will start the UID at 101. And, I don't know beforehand how many special users there will be, however 100 sounds like a reasonable number to reserve.
What kind of null data can I insert and how would you go about this?
Best Answer
Actually, yes you can start an empty table's auto_increment from 101.
SAMPLE CODE
SAMPLE CODE EXECUTED
CREATE 100 INITIAL USERS
You cannot add user id
0
because the auto_increment interprets it asGET NEXT ID
GIVE IT A TRY !!!