I always see MySQL database primary keys as integers. Is that because primary keys must be integers, or because of ease of use when setting auto_increment
on the column?
I am wondering just in case I want my primary key to be a varchar
in the future.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…