I want to create an “users” table which include a “email address” and/or “userName” unique field, should I also add an “id” int usigned auto_increment to be the primary key or not?
I’m asking because I’ve seen some textbook examples using an “id” field in such a table with another unique field.
Yes, it’s best practice.