Whats the best MySQL datatype for my variable that holders numbers and a dash in it (-). Example would be 1233-33214-543-5435643
I’m New to StackOverflow, so whoever down-voted my question, can you please explain why? Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you mention
VARCHAR, it sounds like you want a MySQL datatype, not a PHP datatype then. In that case, it sounds likeCHAR(26)would probably suit your fixed-width string, like “5432543-88367-87366-637622”.