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

iphone - How do I make a UIPickerView in a UIActionSheet -

excel - Populate list via a bi-Condition -