This maybe an easy one but i couldn\'t get answer. I need to select float value from table
example table :-
value
10.2
4.5
4.6
4.06
<
Today, I also came across the same situation and get resolved just by using FORMAT function of MySQL, It will return the results that exactly match your WHERE clause.
SELECT * FROM yourtable WHERE FORMAT(`col`,2) = FORMAT(value,2)
Explanation:
FORMAT('col name',precision of floating point number)
Hope it helps.