sql - Checking rows that are not numbers in a varchar column for MySQL Query -


in perfect world type of setup, have integer column expects numbers;

but if have varchar column , want add where clause said this:

where <value> not number

in essence, selecting rows contain characters not numbers.

this mysql.

try this

    select * mytable concat('',col1 * 1) != col1 

demo here


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -