floating point - checking to ensure all values in a field are integers in MySQL -
I have a column that is currently a floating point number and I must check that all the values in the column are integers. What is the easiest way to do this?
and find particulars that are not integers ...
SELECT * yourtable WHERE col% 1! = 0;
Comments
Post a Comment