type conversion - How do I store numbers as varchar in mysql? -


I need to store integers and decimal numbers such as:
9, 1, 10.00, 2, 100.10

For this, I chose Wakarah. But the problem is that I can not implement the maximum () function, because it returns instead of 100.10 datatap varchar What should I do in this scenario?

Please help !! Thanks!

Use one of the available in MySQL in your case, NUMERIC or DECIMAL or like FLOAT would be appropriate.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -