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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -