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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -