mysql - Is it recommended to use a text field as userID in all tables of a database? -



mysql - Is it recommended to use a text field as userID in all tables of a database? -

i took @ database scheme of owncloud , there table users. userid (their pk?) username, not have numeric id or userid column.

is recommended somehow or why this? because when want alter username of user, have alter affected rows in tables of database , not single row in users table.

in sentiment wrong , not performance. https://github.com/owncloud/core/issues/9136 https://github.com/owncloud/core/blob/master/db_structure.xml#l1026 uid text length of 64 should integer field illustration auto_increment

is professional/good practice or not?

referencing this: is bad utilize user name primary key in database design?

first...numbers best storage memory second...names maybe repeated!(duplicated)! so..numbers best

mysql database database-design indexing primary-key

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -