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

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

mysql - Can mysql_pconnect be called multiple times in one php page? -