php - IDs in MySQL, standard IDs or alphanumerics? -


i'm thinking of this, if make web site specific university's students should make id standard ids on mysql (integer, auto increment) or should give ids how email address is, if student's email address e12234@university.edu his/her id e12234 (on web site). ok, performance?

edit: also, there such email addresses: n13345@university.edu (exchange student) jennajameson@university.edu (this professor)

i recommend separate, independent value id (integer, auto increment). id values should never change, never updated. people change emails time, corporations reissue same email address new users sometimes.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -