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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -