mysql - Filtering for only integer/numeric values in a varchar field -


i have table member id column (non-pk) should integers. many null or non-integer values mixture of letters, numbers, , other random characters (the field of type varchar). want select rows containing valid member id's (i.e. integers or numeric values). i'm working in sql workbench. in advance!

because i'm connecting redshift, syntax is

where column ~ '[0-9].+'


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -