what is the type of field in MYSQL that Can store Integer or Double Values
I mean in the same column you can store integer || Doubles ?
What is this type or how can I do It?
Any efforts will be appreciates.
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.
I don’t think there is such data type in mysql. Probably you might want varchar instead, and cast to the right data type in your server side code(php, java …), but it might cause performance overhead. I’m not sure how come you have a such strange data type requirement. If the data has to be stored in this way, consider add an extra column for flagging data type.