Can primary index be a CHAR in MySQL?
Posted
by FFish
on Stack Overflow
See other posts from Stack Overflow
or by FFish
Published on 2010-02-18T00:18:26Z
Indexed on
2010/05/23
7:50 UTC
Read the original article
Hit count: 279
My primary indexes are unique reference numbers like 002345 and 000023.
If I format them as integers I loose my zero's. They need to be 6 digits.
Can I use CHAR? I don't need any auto increments.
© Stack Overflow or respective owner