Hi,
I'm making a table in my database "main" called "accounts". I've done that now, what I want to know is what do I do to make a row that auto increments every time a new account is added?
The rows for example are, id; username; password; and e-mail address.
For ID I've put it as "int, length 8, name 'id', default 0, set to auto_increment, and set as a primary key".
Should it be set as an index, primary or unique key? I'm not sure.
Kind Regards
I'm making a table in my database "main" called "accounts". I've done that now, what I want to know is what do I do to make a row that auto increments every time a new account is added?
The rows for example are, id; username; password; and e-mail address.
For ID I've put it as "int, length 8, name 'id', default 0, set to auto_increment, and set as a primary key".
Should it be set as an index, primary or unique key? I'm not sure.
Kind Regards