-- select rows where column is an integer value SELECT * FROM mytable WHERE mycolumn REGEXP '^[0-9]+$' -- http://stackoverflow.com/questions/10347033/how-to-select-all-rows-where-mycolumn-is-an-integer-value