I always use auto_increment when making tables. Right now I'm trying to make a table for an html <select>
field but the problem is that it's set to optional so the first <option>...</option>
will have to have a value of 0
. Does that mean that when I structure the table the first auto_increment will have to start at 0 as well? Is that even valid?
Edit: Thanks for your comments. I'll be using the table in some INNER JOIN
statement so the primary key is a foreign key in some other table. What will the value of the foreign key be if the user doesn't opt to answer the field?